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)
南来的,北往的,有遇到过的吗?