java – My spring boot with Gradle giving me a null modelAndView object
java – My spring boot with Gradle giving me a null modelAndView object
Try the *.html in the spring.mvc.view.suffix property instead of .html
The problem was due to my bad directory configuration, the spring-boot could not read the Viewresolver from the application.properties and also the controller class should be in a subdirectory under the main springapplication.