@Test public void root() throws Exception { mockMvc.perform(get("/developer")) .andExpect(status().isTemporaryRedirect()) .andExpect(redirectedUrl("/developer/doc")); mockMvc.perform(get("/developer/")) .andExpect(status().isTemporaryRedirect()) .andExpect(redirectedUrl("/developer/doc")); }
@RequestMapping("") public RedirectView root() { RedirectView redirectView = new RedirectView("/developer/doc"); redirectView.setStatusCode(HttpStatus.TEMPORARY_REDIRECT); return redirectView; }
DeveloperController { @RequestMapping("") public RedirectView root() { RedirectView redirectView = new RedirectView("/developer/doc"); redirectView.setStatusCode(HttpStatus.TEMPORARY_REDIRECT); return redirectView; } }
DeveloperController { @RequestMapping("") public RedirectView root() { RedirectView redirectView = new RedirectView("/developer/doc"); redirectView.setStatusCode(HttpStatus.TEMPORARY_REDIRECT); return redirectView; }  }
DeveloperController { @RequestMapping("") public RedirectView root() { RedirectView redirectView = new RedirectView("/developer/doc"); redirectView.setStatusCode(HttpStatus.TEMPORARY_REDIRECT); return redirectView; }  @RequestMapping("/client-app") String clientApp(); @RequestMapping("/client-app.part") ModelAndView clientAppPart(AccountAccessToken accountAccessToken); @RequestMapping("/doc") String doc(); @RequestMapping("") RedirectView root(); }
DeveloperController { @RequestMapping("") public RedirectView root() { RedirectView redirectView = new RedirectView("/developer/doc"); redirectView.setStatusCode(HttpStatus.TEMPORARY_REDIRECT); return redirectView; }  @RequestMapping("/client-app") String clientApp(); @RequestMapping("/client-app.part") ModelAndView clientAppPart(AccountAccessToken accountAccessToken); @RequestMapping("/doc") String doc(); @RequestMapping("") RedirectView root();  }