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中的内容

5.启动springboot

6.成功访问jsp

springboot内置的tomcat


源码:https://github.com/LUK-qianliu/springboot/