Spring
HNsnopy
这个作者很懒,什么都没留下…
展开
-
基于JUnit测试Spring MVC的正确方法。(仅限Spring 3.2)
[code="java"]package controller;import org.junit.Before;import org.junit.Test;import org.junit.runner.RunWith;import org.springframework.beans.factory.annotation.Autowired;import org.spr...原创 2013-01-18 16:41:02 · 194 阅读 · 0 评论 -
StringHttpMessageConverter乱码问题的解决(Spring 3.2)
特别标注了是Spring 3.2,在网上搜了半天,很多配置应该是老版本的缘故,导致我配置了StringHttpMessageConverter转换编码始终不起作用(也有可能是我个人的错误)。后来在Stackoverflow找到了应该算是正确的配置方式,至少我的是可以运行了:在Spring MVC的配置文件中配置以下:[code="xml"] ...原创 2013-02-03 23:05:22 · 360 阅读 · 0 评论