原因是pom依赖中缺少解析jsp的依赖,添加如下的依赖即可成功跳转
<!--解析jsp页面-->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-jsp-api</artifactId>
</dependency>
最后
以上就是从容银耳汤最近收集整理的关于springboot跳转到jsp页面失败反而把jsp页面下载下来的全部内容,更多相关springboot跳转到jsp页面失败反而把jsp页面下载下来内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复