www.pudn.com > TeachingPlatform.zip > springMVC.xml, change:2016-11-24,size:1543b
<?xml version="1.0" encoding="UTF-8"?> <beans 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/context/spring-context-4.3.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.3.xsd" > <context:component-scan base-package="controller,urlBean,entity"></context:component-scan> <context:property-placeholder file-encoding="UTF-8" location="classpath:*.properties"></context:property-placeholder> <mvc:default-servlet-handler></mvc:default-servlet-handler> <mvc:annotation-driven> <mvc:message-converters> <!--<bean class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter"></bean>--> <!--<bean class="util.JsonConverter"></bean>--> <bean class="org.springframework.http.converter.StringHttpMessageConverter"> <!--<!–设置为utf-8的编码格式–>--> <constructor-arg value="utf-8"></constructor-arg> </bean> </mvc:message-converters> </mvc:annotation-driven> </beans>