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

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

 

 


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

 



posted @ 2018-05-30 22:08  1367356  阅读(639)  评论(0编辑  收藏  举报