Spring Boot main application class change

Make your application class extend the SpringBootServletInitializer class. Add a new annotation, as follows, letting your Spring Boot application know that a new controller, HomeController, is a component that it has to scan:

@ComponentScan(basePackageClasses=HomeController.class)
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.171.64