springboot thymeleaf shiro 中 static目录下的html文件如何引用 templates目录下的文件

springboot thymeleaf shiro 中 static目录下的html文件如何引用 templates目录下的文件

例如error_404.html 引入 templates下system下的sidebar.html
我是这么写的

<div th:include="../../system/sidebar :: sidebar">div>

始终不行呀

img

<div th:include="../templates/system/footer :: footer"></div>

这么写也不行