使用spring boot ,和前端thymeleaf模板进行开发路径问题

加入引用:<html xmlns:th="http://www.thymeleaf.org">
1:引用templates模板下面的文件时,不要用/绝对路径。


2:引用static下面的静态文件时,要用/绝对路径进行引用。
3:添加http herf链接时,要在模板中用绝对路径/进行引用



原文地址:https://www.cnblogs.com/liyafei/p/9113860.html