Exception:
[WARNING] /admin/edit/12
javax.servlet.ServletException: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expression: "role.id" (template: "role/edit" - line 11, col 40)
解决:
role/edit页面的第11行,找不到role.id
发现 是点击 用户(admin)管理,出现了role.id
去AdminController页面,发现是edit方法,返回的页面是role/edit