《spring mvc学习(49):返回json数据.docx》由会员分享,可在线阅读,更多相关《spring mvc学习(49):返回json数据.docx(50页珍藏版)》请在金锄头文库上搜索。
1、spring mvc学习(49):返回json数据json包下载pom.xml 4.0.0 com.geyao springmaven 0.0.1-SNAPSHOT org.springframework spring-webmvc 4.2.8.RELEASE org.springframework spring-context 4.2.8.RELEASE javax.servlet servlet-api 2.5 javax.servlet jsp-api 2.0 org.springframework spring-core 4.2.8.RELEASE org.springframewor
2、k spring-beans 4.2.8.RELEASE org.springframework spring-web 4.2.8.RELEASE org.springframework spring-aop 4.2.8.RELEASE org.springframework spring-expression 4.2.8.RELEASE org.apache.taglibs taglibs-standard-spec 1.2.5 org.apache.taglibs taglibs-standard-impl 1.2.5 jstl jstl 1.1.2 web.xml Springmaven
3、01 /WEB-INF/jsp/home.jsp encodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding UTF-8 encodingFilter /* dispatcherServlet org.springframework.web.servlet.DispatcherServlet contextConfigLocation classpath*:springMVC-servlet.xml 1 dispatcherServlet / HiddenHttpMethodFilter org.
4、springframework.web.filter.HiddenHttpMethodFilter HiddenHttpMethodFilter /* springMVC-servletbeans xmlns=http:/www.springframework.org/schema/beans xmlns:xsi=http:/www.w3.org/2001/XMLSchema-instance xmlns:context=http:/www.springframework.org/schema/context xmlns:mvc=http:/www.springframework.org/schema/mvc xsi:schemaLocation=http:/www.springframework.org/schema/beans http:/www.springframework.org/schema/beans/spring-beans.xsd http:/www.springframework.org/schema/context http:/www.springframework.org/schema/contex