托马斯小火车喷雾又喷烟,一直喷,喷喷喷. 2023-04-12 10:25 采纳率: 77.8%
浏览 54
已结题

springbaat+shira+thymeleof 整合坑

springbaat+shira+thymeleof 整合坑

发现了一个万米深坑
springbaat+shira+thymeleof 整合的时候

操作都正常的时候,shiro标签都正常,非常完美。

但是,我草但可是,,

当404 500 401 403 的时候 shiro标签失效。

会报错,错误栈列表:
org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "class path resource [templates/error/404.html]")
Error during execution of processor 'at.pollux.thymeleaf.shiro.processor.element.PrincipalElementProcessor' (template: "error/404" - line 19, col 24)
No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton. This is an invalid application configuration.
org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "class path resource [templates/error/404.html]")
Error during execution of processor 'at.pollux.thymeleaf.shiro.processor.element.PrincipalElementProcessor' (template: "error/404" - line 19, col 24)

南来的,北往的,有遇到过的吗?

  • 写回答

2条回答 默认 最新

  • 关注

    没落了

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 6月1日
  • 已采纳回答 6月1日
  • 创建了问题 4月12日