我试图从jsp文件(WEB-INF/jsp/index.jsp)访问css & js文件时出现问题。我阅读了Stack Overflow上其他人遇到的类似问题。访问动态Web项目中的css,js文件的问题
我加入这行代码到我的SpringMVCProj-servlet.xml中,这让事情变得更复杂了。
SpringMVCProj-servlet.xml中
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
的web.xml
Spring MVC Application
/WEB-INF/jsp/index.jsp
SpringMVCProj
org.springframework.web.servlet.DispatcherServlet
1
SpringMVCProj
/
contextConfigLocation
/WEB-INF/SpringMVCProj-servlet.xml
org.springframework.web.context.ContextLoaderListener
这是我之前添加了代码行。
这之后...
+0
WebContent是源目录。它不存在于生成的已部署Web应用程序中。 –
2013-03-25 16:40:11