使用IDEA时,Springboot整合jsp Path with “WEB-INF“ or “META-INF“: [WEB-INF/jsp/jspIndex.jsp] 错误

最近学习springboot在使用整合Jsp时遇到了404错误,
后台提示:Path with “WEB-INF” or “META-INF”: [WEB-INF/jsp/jspIndex.jsp]
首先,检查pom文件,两个必备包已引用
使用IDEA时,Springboot整合jsp Path with “WEB-INF“ or “META-INF“: [WEB-INF/jsp/jspIndex.jsp] 错误_第1张图片
第二,检查application.properties(或yml)
使用IDEA时,Springboot整合jsp Path with “WEB-INF“ or “META-INF“: [WEB-INF/jsp/jspIndex.jsp] 错误_第2张图片
第三、查询contrller指向及目标文件
使用IDEA时,Springboot整合jsp Path with “WEB-INF“ or “META-INF“: [WEB-INF/jsp/jspIndex.jsp] 错误_第3张图片
以下检查无误,但是为啥依然是404呢,一定不是人品问题,
第四、打开Maven Projects -运行的项目-Plugins -spring boot-spring-boot:run -右键运行 ,问题解决!
使用IDEA时,Springboot整合jsp Path with “WEB-INF“ or “META-INF“: [WEB-INF/jsp/jspIndex.jsp] 错误_第4张图片

你可能感兴趣的:(使用IDEA时,Springboot整合jsp Path with “WEB-INF“ or “META-INF“: [WEB-INF/jsp/jspIndex.jsp] 错误)