ssm_crm运行时的错误总结

1.URI is not registered ( Setting | Project Settings | Schemas and DTDs )

2. unknown resource

层的mapper扫描里:

改成:

 3.This inspection checks that the script tag content is valid XML

4.No mapping found for HTTP request with URI [/ssm_crm/resources/customer/update.action]in DispatcherServlet with name 'springMVC'

发现路径中多个resources,原来jsp页面的全局路径我加了这个,然而这个全局路径不仅加在js等静态资源下,修改等的请求下也使用了,所以,只能单独在静态资源下加resources,其实主要还是我多事的把静态资源单独地放在了resources里。

全局路径:

<%
   
String path = request.getContextPath();
   
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path +
"/" ;
%>

下面引用:

<link href="<%=basePath%>resources/css/bootstrap.min.css" rel="stylesheet">

//修改的(还有下面的。。)这里也用到了关键是。。。。。。

 

猜你喜欢

转载自blog.csdn.net/qq_29380733/article/details/86488382