July 2018
Intermediate to advanced
268 pages
7h 36m
English
The preceding example can be easily converted to a Spring Boot application by following the ensuing additional steps. This process won't cover many of the trivial steps that we have done previously. You need to have one more configuration file, SpringSecurityConfig.java, the details of which are as follows.
You can create a new file, usually named Run.java, with the following code:
@SpringBootApplicationpublic class Run { public static void main(String[] args) { SpringApplication.run(Run.class, args); }}
It's a very simple file with an important annotation in it, @SpringBootApplication. We took away the Spring MVC configuration class and put the following properties in the application.properties file. This is just another ...
Read now
Unlock full access