@Test public void getName() { String name = restTemplate.getForObject("/name", String.class); System.out.println(name); Assert.assertEquals("Adam", name); }
@RequestMapping("name") public String getName(){ return "Adam"; }
UserController { @RequestMapping("name") public String getName(){ return "Adam"; } }
UserController { @RequestMapping("name") public String getName(){ return "Adam"; }  }
UserController { @RequestMapping("name") public String getName(){ return "Adam"; }  @RequestMapping("/") @Cacheable(value = _CacheKey) String doGet(); @RequestMapping("/put") @CachePut(value = _CacheKey) String putCache(); @RequestMapping("/del") @CacheEvict(value = _CacheKey) String delCache(); @RequestMapping("/uid") String testSession(HttpSession session); @RequestMapping("name") String getName(); }
UserController { @RequestMapping("name") public String getName(){ return "Adam"; }  @RequestMapping("/") @Cacheable(value = _CacheKey) String doGet(); @RequestMapping("/put") @CachePut(value = _CacheKey) String putCache(); @RequestMapping("/del") @CacheEvict(value = _CacheKey) String delCache(); @RequestMapping("/uid") String testSession(HttpSession session); @RequestMapping("name") String getName();  }