1.引入jsp依赖
<!--使用jsp-->
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
</dependency>
2.编写controller
3.配置application.properties
4.新建/WEB-INF/jsp/index.jsp
index.jsp中的内容