How to enable default Authorization in your Spring boot application?
Welcome back friends, Do you know spring boot is by default an unprotected application. i.e. if you develop any Webservice endpoint, it is by default accessible by everybody in the world. that’s why I am saying that Spring Boot is an unprotected application.
If you want to make your spring boot an authorized application, you have to customize your application using the spring boot Security starter project. Following artifact, you have to add in your Spring Boot Application. It is called a Spring Boot Security starter Project.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
For further reading please click the below link.
How to enable default Authorization in Spring Boot