会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
波克蛋蛋
博客园
首页
新随笔
联系
订阅
管理
2019年11月26日
springboot整合thymeleaf——引用静态资源
摘要: 原html src="/css/index.css" thymeleaf中,th:src="@{/css/index.css}"
阅读全文
posted @ 2019-11-26 23:36 波克蛋蛋
阅读(730)
评论(0)
推荐(0)
编辑
整合thymeleaf
摘要: 1、导入thymeleaf依赖 2、controller类 (1)模板 导入命名空间,xmlns:th="http://www.thymeleaf.org" (2)ModelAndView参数指定返回的模板index 结果
阅读全文
posted @ 2019-11-26 21:33 波克蛋蛋
阅读(105)
评论(0)
推荐(0)
编辑
公告