1、先将jquery-1.7.2.min.js放到WEB-INF目录下
2、spring-web.xml配置
<mvc:resources location="/WEB-INF/js/" mapping="/js/**"/>
<!-- FastJson注入 。ajax验证要用-->
<mvc:annotation-driven>
<mvc:message-converters register-defaults="true">
<!-- 避免IE执行AJAX时,返回JSON出现下载文件 -->
<!-- FastJson -->
<bean id="fastJsonHttpMessageConverter"
class="com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter">
<property name="supportedMediaTypes">
<list>
<!-- 这里顺序不能反,一定先写text/html,不然ie下出现下载提示 -->
<value>text/html;charset=UTF-8</value>
<