09 2015 档案
摘要:1.方法上面的RequestMapping要加上红色的部分。 @ResponseBody @RequestMapping(value = "/search", produces = {"application/json;charset=UTF-8"}) public String search(...
阅读全文
摘要: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...
阅读全文
摘要:1. 建立properties文件:我在resource下面建立一个config文件夹,config文件夹里面有mytest.properties文件,文件内容如下:sam.username=samsam.password=1234562.在spring.xml里面配置一些内容,让tomcat启动时...
阅读全文

浙公网安备 33010602011771号