09 2015 档案

摘要:1.方法上面的RequestMapping要加上红色的部分。 @ResponseBody @RequestMapping(value = "/search", produces = {"application/json;charset=UTF-8"}) public String search(... 阅读全文
posted @ 2015-09-18 18:13 java后端领域 阅读(273) 评论(0) 推荐(0)
摘要:1.pom.xml配置下载需要的jar。 junit junit 4.11 test org.springframework spring-test 3.2.3.RELEASE test org.springframework spring-context 3.2.3.RELE... 阅读全文
posted @ 2015-09-16 14:03 java后端领域 阅读(3581) 评论(0) 推荐(0)
摘要:1. 建立properties文件:我在resource下面建立一个config文件夹,config文件夹里面有mytest.properties文件,文件内容如下:sam.username=samsam.password=1234562.在spring.xml里面配置一些内容,让tomcat启动时... 阅读全文
posted @ 2015-09-16 12:33 java后端领域 阅读(1758) 评论(0) 推荐(0)