Spring MVC 配置文件dispatcher

  1. <beans xmlns="http://www.springframework.org/schema/beans"

  2. xmlns:mvc="http://www.springframework.org/schema/mvc"

  3. xmlns:context="http://www.springframework.org/schema/context"

  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

  5. xsi:schemaLocation="http://www.springframework.org/schema/beans

  6. http://www.springframework.org/schema/beans/spring-beans-3.2.xsd

  7. http://www.springframework.org/schema/context

  8. http://www.springframework.org/schema/context/spring-context-3.2.xsd

  9. http://www.springframework.org/schema/mvc

  10. http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd"\>

  11. <bean name="jsonView" class="com.test.myapp.MappingFastJsonJsonView">

  12. <property name="contentType" value="application/json;charset=UTF-8"/>

  13. </bean>

  14. <bean name="jsonView" class="com.test.myapp.MappingFastJsonJsonView">

  15. <property name="contentType" value="application/json;charset=UTF-8"/>

  16. </bean>

评论

暂无评论