dev --- 3.8.0.A版本, openProject引用 ; formao-live --- 3.7.0.B 版本, formallProject引用
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

44 satır
1.9 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc"
  4. xmlns:context="http://www.springframework.org/schema/context"
  5. xmlns:aop="http://www.springframework.org/schema/aop" xmlns:task="http://www.springframework.org/schema/task"
  6. xsi:schemaLocation="http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
  7. http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
  8. http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
  9. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
  10. http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task.xsd">
  11. <!-- only scan the Controller class for web context -->
  12. <context:component-scan base-package="com.github.binarywang.demo.spring">
  13. <context:include-filter type="annotation"
  14. expression="org.springframework.stereotype.Controller" />
  15. </context:component-scan>
  16. <mvc:annotation-driven>
  17. <mvc:message-converters>
  18. <ref bean="jsonConverter" />
  19. <ref bean="stringHttpMessageConverter" />
  20. </mvc:message-converters>
  21. </mvc:annotation-driven>
  22. <mvc:default-servlet-handler />
  23. <bean id="stringHttpMessageConverter"
  24. class="org.springframework.http.converter.StringHttpMessageConverter">
  25. <property name="supportedMediaTypes">
  26. <list>
  27. <value>text/html;charset=UTF-8</value>
  28. <value>text/plain;charset=UTF-8</value>
  29. </list>
  30. </property>
  31. </bean>
  32. <bean id="jsonConverter"
  33. class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter">
  34. <property name="supportedMediaTypes" value="application/json" />
  35. </bean>
  36. <aop:aspectj-autoproxy proxy-target-class="true" />
  37. </beans>