如果使用 Thyemleaf 模板中 <header></header>标签来引进公共的html 需要注意
<header id="header" th:replace="top::html"></header>
th:replace里面不可以开头加 / 开发工具中运行没问题,如果打成Jar包则会解析不出来
一个小坑,记录一下,有不对的地方,希望大家指点出来
如果使用 Thyemleaf 模板中 <header></header>标签来引进公共的html 需要注意
<header id="header" th:replace="top::html"></header>
th:replace里面不可以开头加 / 开发工具中运行没问题,如果打成Jar包则会解析不出来
一个小坑,记录一下,有不对的地方,希望大家指点出来