thymelead
weixin_41581877
这个作者很懒,什么都没留下…
展开
-
Thymeleaf+bootstrap 实现tab页,引入不同的html
近期给同事写一个计算器功能,想用bootstrap的tab标签页功能,但是有7个tab页,都写到一个html太乱了,最后结合Thymeleaf的th:replace 实现了该功能。th:replace用法:airBottleCalcu/tab1 html的路径,tab-1 是代码快。Thymeleaf 不能直接跳转html,用这个替换代码还是很好使的。原创 2022-12-01 13:46:48 · 965 阅读 · 2 评论 -
thymeleaf 大坑,IDEA运行正常,项目打包发布运行错误,Error resolving template 不能解析
用若依代码开发,使用了thymeleaf模板,idea运行的很好,部署linux系统后,报找不到模板,经过一顿百度发现是模板路径前。原创 2022-12-01 13:21:02 · 575 阅读 · 0 评论