<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>
Spring MVC 配置文件dispatcher