REST, Spring, Spring Boot

Java Enum in REST input

It is a useful habit to restrict the input of your REST interface as much as possible. Therefore I use java enumeration classes as field type for REST input classes, whenever it is possible. It also has the advantage, that you can document the possible values of a given field. It makes impossible to the… Continue reading Java Enum in REST input

Java, Spring, Spring Boot, Websocket

Using Spring Security with Websocket

  If you have a Spring Boot application, that already uses Spring Security, it can be tricky to set up the security for Websocket communication. The problem is, that in case of you need to protect your resources with basic authentication, it avoids the connection to your Websocket service, while Websocket can not work together… Continue reading Using Spring Security with Websocket