2018年7月31日 | Leave a comment 问题: 访问 /sso/logout 报 404 解决: @RequestMapping("/logout") public String logout(HttpServletRequest req) throws ServletException{ req.logout(); return "redirect:/"; } 12345 @RequestMapping("/logout") public String logout(HttpServletRequest req) throws ServletException{ req.logout(); return "redirect:/"; } 参考: https://stackoverflow.com/questions/37108782/keycloak-logout-request