July 2017
Intermediate to advanced
414 pages
11h 18m
English
Adding basic authentication to Spring Boot is pretty simple. The pom.xml file will have the following dependency. This will include the necessary Spring security library files:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency>
This will, by default, assume that basic security is required for this project. Run the application, and test it with a browser. The browser will ask for the login username and password.
The default basic authentication assumes the . The default password will be printed on the console at startup:
Using default security password: a7d08e07-ef5f-4623-b86c- 63054d25baed
Alternately, the username ...
Read now
Unlock full access