比如下面这两个
@GetMapping("/signout")public String signout(HttpSession session) { session.removeAttribute(KEY_USER); logger.info("Redirect"); return "redirect:/signin";}@GetMapping("/resetPassword")public ModelAndView resetPassword() { throw new UnsupportedOperationException("Not supported yet!");}
它就只自动生成了signout这个API。想想是因为它不能识别ModelAndView生出互动的缘故
只针对REST API,不是MVC
Sign in to make a reply
薄荷糖与红茶
比如下面这两个
它就只自动生成了signout这个API。想想是因为它不能识别ModelAndView生出互动的缘故