SpringMVC常用注解實例詳解3:@ResponseBody
http://www.cnblogs.com/sunang/p/3429895.html另外,中文亂碼,解決方法:
http://blog.csdn.net/shuangde800/article/details/9098607
- <mvc:annotation-driven>
- <mvc:message-converters>
- <bean class="org.springframework.http.converter.StringHttpMessageConverter">
- <property name="supportedMediaTypes">
- <list>
- <value>text/plain;charset=UTF-8</value>
- <value>text/html;charset=UTF-8</value>
- </list>
- </property>
- </bean>
- </mvc:message-converters>
- </mvc:annotation-driven>
沒有留言:
發佈留言