
JAVA Web-SpringMVC
文章平均质量分 55
DarwinLong
我是程序员,为未来努力!
展开
-
SpringMVC:no declaration can be found for element 'mvc:annotation-driver'和 'context:component-scan'.
问题一:cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:component-scan'.解决办法:beans 中增加绿色部分的context、spring-context。 具体引用可查看spring-contex原创 2017-08-16 11:49:09 · 3807 阅读 · 0 评论 -
SpringMVC中WEB-INF/jsp引用css
jsp、静态资源文件放在webroot或是WebConten下,这样用户可以直接访问。放在WEB-INF下,用户不能直接访问,需要通过请求服务器才能访问,提高页面安全性。放在webroot或是WebConten下: jsp、静态资源文件放在webroot或是WebConten下,加上过滤器也可以实现不能直接访问。程序结构清晰,便于维护。放在WEB-INF下:原创 2017-08-18 10:49:26 · 2010 阅读 · 1 评论