java web项目(用intellijidea)部署到Tomcat后报错:Failed to load resource: the server responded with a status of 404

图片说明
静态资源js和图片,都在webapp目录下,无法加载图片说明

在application.properties 中配置
#指定服务端口
server.port=8006
#指定服务根目录
server.context-path=/
#指定静态资源目录
spring.resources.static-locations: file:/D:/static/

user/login这个路由 java部分没有匹配到
看看java的路由处理部分 有没有这个路由

建议检查路径,可能是代码路径存在错误

https://blog.csdn.net/qq_25378657/article/details/90078119

静态资源中缺少上下文 在代码中 这样写

<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-3.5.0.js"></script>

建议检查下路径是否有问题