目录结构如下:
我要在data-statistics.html文件里引入footer.html。代码这么写的:
但是就是不对,编译也报错了。
footer.html文件内容:
我尝试换了种方式引入,直接:<div th:replace="common/footer::footer"></div>
但是页面上js文件路径全不对了
目录结构如下:
我要在data-statistics.html文件里引入footer.html。代码这么写的:
但是就是不对,编译也报错了。
footer.html文件内容:
我尝试换了种方式引入,直接:<div th:replace="common/footer::footer"></div>
但是页面上js文件路径全不对了
我记得路径一律用 @表达式, 你查查看 thymeleaf的文档