![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
thymeleaf
LL刘小生
这个作者很懒,什么都没留下…
展开
-
SpringBoot使用thymeleaf th:href 一个参数及多个参数传递格式
一个参数<a href="需要跳转的页面" th:href="@{controller下的方法(变量名=${参数})}" th:text="${参数}"></a> 例如: <a href="xx.html" th:href="@{/room/gobook(id=${item.roomId})}" th:text="${item.name}"></a>多参数多个参数用英文逗号隔开<a th:href="@{/room/gobook(roo原创 2020-06-16 16:34:32 · 3095 阅读 · 1 评论 -
SpringBoot使用thymeleaf完成数据在页面循环展示
首先在pom.xml配置文件添加thymeleaf依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId></dependency>controller数据处理并跳转页面 @GetMapping("list") public Mod原创 2020-06-16 10:22:53 · 2013 阅读 · 0 评论