Discuss / Java / 发现自动生成的文档是有限制的

发现自动生成的文档是有限制的

Topic source

比如下面这两个

@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生出互动的缘故

廖雪峰

#2 Created at ... [Delete] [Delete and Lock User]

只针对REST API,不是MVC


  • 1

Reply