The example above shows the example of hello world with Spring Boot and Thymeleaf. Notice that instead of controllers we use ViewControllerRegistry So that we don't need to worry about creating separate controller classes
This is example based on https://spring.io/guides/gs/securing-web You can find article in russian with additional explanations here https://smartcoderteam.github.io/spring-boot-simple-app-in-15-minutes
- Import Maven project and just run Application.java from your favorite IDE
- Open http://localhost:8080
- Spring Boot will do the rest.
- Spring Boot 1.4.2
- Thymeleaf for views
- Maven for build
Just 3 classes