Spring MVC配置资源不是来自webapp

时间:2015-05-26 19:21:21

标签: css spring spring-mvc less freemarker

有没有可能配置spring框架在MVC配置中使用像webapp这样的其他地方? 我正在使用freemarker模板,LESS样式和带有xml-node配置的Spring MVC机制,如:

<mvc:resources location="/css/" mapping="/css/**"> 

将CSS URI设置为样式表。

发生此问题是因为我使用的是由maven插件编译的LESS。结果(CSS文件)放在TARGET位置,但spring配置使用WEBAPPS目录。页面不能使用我编译的CSS文件。

我该怎么做才能解决这个问题?

enter image description here

enter image description here

enter image description here

0 个答案:

没有答案
相关问题