I added this dependency and it solved my problem.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
https://stackoverflow.com/questions/31134333/this-application-has-no-explicit-mapping-for-error/39017839 参考
以上是解决办法
有的可以通过加入
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<scope>provided</scope>
</dependency>
- 解决
我的没有成功 这个jar 包含在
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
我已经加入 了,当时也没有解决 这个问题的路径
https://stackoverflow.com/questions/27966602/spring-boot-mvc-cant-find-jsp

本文解决了Spring Boot项目中配置JSP支持的问题。通过添加spring-boot-starter-thymeleaf依赖,作者解决了应用找不到错误页面的问题。对于使用JSP的需求,尝试引入tomcat-embed-jasper依赖,尽管此方法未在作者的案例中奏效。
3655

被折叠的 条评论
为什么被折叠?



