This application has no explicit mapping for /error, so you are seeing this as a fallback

I added this dependency and it solved my problem.


    org.springframework.boot

    spring-boot-starter-thymeleaf

https://stackoverflow.com/questions/31134333/this-application-has-no-explicit-mapping-for-error/39017839  参考

 

 

以上是解决办法

 

有的可以通过加入


org.apache.tomcat.embed
tomcat-embed-jasper
provided

 

 

 

  1. 解决

我的没有成功 这个jar 包含在

 

         
            org.springframework.boot  
            spring-boot-starter-web  
        


我已经加入 了,当时也没有解决 这个问题的路径

 

https://stackoverflow.com/questions/27966602/spring-boot-mvc-cant-find-jsp

This application has no explicit mapping for /error, so you are seeing this as a fallback_第1张图片

你可能感兴趣的:(This application has no explicit mapping for /error, so you are seeing this as a fallback)