问题:spring-boot 项目使用jsp报错404
项目升版本后更换svn地址,重新拉取代码,启动后所有页面都报404,如下:
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Tue Feb 15 10:03:55 CST 2022
There was an unexpected error (type=Not Found, status=404).
/WEB-INF/jsp/index.jsp
问题原因:
启动项目时没有设置项目的working directory。
解决方法:
配置working directory 为 $MODULE_WORKING_DIR$