spring boot+spring mvc整合时,配置了可以访问controller但是找不到对应的jsp
3.spring-boot-maven-plugin版本改成1.4.2,高于这个版本的打包后即使有jsp也会404。spring boot+spring mvc整合时,配置了可以访问controller但是找不到对应的jsp。0.webapp在main目录下。1.maven没打包出去。
·
spring boot+spring mvc整合时,配置了可以访问controller但是找不到对应的jsp。
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Wed Mar 08 14:27:46 CST 2023
There was an unexpected error (type=Not Found, status=404).
JSP file [/WEB-INF/jsp/xxx.jsp] not found
0.webapp在main目录下。
1.maven没打包出去。
<resource>
<directory>src/main/webapp</directory>
<filtering>false</filtering>
<includes>
<include>**/**</include>
</includes>
</resource>
2.work
配置成项目根目录
3.spring-boot-maven-plugin版本改成1.4.2,高于这个版本的打包后即使有jsp也会404
更多推荐
所有评论(0)