验证中...
Ajax-json-乱码
Raw Copy
<!-- springmvc里配置增加 -->
<mvc:annotation-driven>
<!-- 解决返回String时乱码 return 字符串,前台默认让它成为html形式的UTF-8 -->
<mvc:message-converters register-defaults="true">
<bean class="org.springframework.http.converter.StringHttpMessageConverter">
<property name="supportedMediaTypes">
<list>
<value>text/plain;charset=UTF-8<alue>
<value>textml;charset=UTF-8<alue>
<st>
</property>
</bean>
</mvc:message-converters>
</mvc:annotation-driven>

Comment list( 0 )

You need to Sign in for post a comment

6_float_left_people 6_float_left_close