springboot访问JSP
1.创建springboot项目(略)
2.引入关键依赖
<!--jsp,springboot内置tomcat没有此依赖-->
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
</dependency>
3.创建webapp目录
4.测试
5.启动访问
http://localhost:8081/jsp/testJSP.jsp