Spring MVC 配置文件dispatcher
文章目录
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
http://www.springframework.org/schema/context/spring-context-3.2.xsd
http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd"\>
<bean name="jsonView" class="com.test.myapp.MappingFastJsonJsonView">
<property name="contentType" value="application/json;charset=UTF-8"/>
</bean>
<bean name="jsonView" class="com.test.myapp.MappingFastJsonJsonView">
<property name="contentType" value="application/json;charset=UTF-8"/>
</bean>
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论