https://www.gravatar.com/avatar/8613a75479af50c38344107afb4e9a1f?s=240&d=mp

无糖拿铁

SpringMVC中Controller的测试

参考 http://www.jianshu.com/p/ad7995332dd9 controller: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 @Controller @RequestMapping("/system") public class SysMapController { @Autowired private FirstSysMapService firstSysMapService;//注入Service @RequestMapping(value = "/first/map", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"}) @R