Spring MVC静态文件访问

来源:互联网 发布:js post方式下载文件 编辑:程序博客网 时间:2024/05/01 02:44
在设置Spring配置文件时,总时提示not bound,这是xml命名空间的问题,可参照spring 提供的配置方式,摘录如下:
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:mvc="http://www.springframework.org/schema/mvc"xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsdhttp://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"><mvc:annotation-driven/><mvc:resources mapping="映射地址" location="实际路径" />...</beans>


原文链接:Serving Javascript Resources
0 0
原创粉丝点击