I am trying to add security to my Spring Boot application. My current application is using REST controllers and every time I get a GET or POST request
GET
POST
In spring boot app you can add below to application.properties
security.user.name=user security.user.password=password
It will do rest of the thing like getting it from header and validation for more visit https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-security.html