SpringBoot integration jsp example (springboot officially does not recommend the use of jsp)

1)        Create a springboot project with idea , pay attention to check the web component to complete the project creation

2)        Modify the pom.xml file to add support for servlet , jstl , and jsp

3)        Create webapp /WEB-INF/views folders at all levels under src \mian\ , and create a new jsp page under views

4)        Add the following configuration in the configuration file application.properties

5)        Create a controller that accesses the home page

6) Project structure


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324406707&siteId=291194637