摘要: 从Spring3.2开始 Spring包含了一种mockSpringMVC并针对controller执行http请求的机制 如(该代码选自spring实战4): mock 以及when thenreturn 的用法在我的理解看来就是 mock方法实现了一个接口对象 when thenreturn方法 阅读全文
posted @ 2017-05-26 14:58 chrischris 阅读(998) 评论(0) 推荐(0)