Authored by hugufei

测试代码的bug

@@ -37,7 +37,7 @@ public class TestEhcacheController { @@ -37,7 +37,7 @@ public class TestEhcacheController {
37 @RequestMapping(value = "/testGet") 37 @RequestMapping(value = "/testGet")
38 @ResponseBody 38 @ResponseBody
39 public Map<String, Object> testGet(int count) { 39 public Map<String, Object> testGet(int count) {
40 - for (int i=0;i<count;i++) { 40 + for (int i=1;i<=count;i++) {
41 System.out.println("Key"+i+"_"+ehCache.exist("Key"+i)); 41 System.out.println("Key"+i+"_"+ehCache.exist("Key"+i));
42 } 42 }
43 System.out.println(ehCache.getStatistics()); 43 System.out.println(ehCache.getStatistics());