遍历 list如下

th:each

spring boot -thymeleaf-遍历list和map

th:each 状态变量 var

spring boot -thymeleaf-遍历list和map

spring boot -thymeleaf-遍历list和map

遍历map如下(需要双层遍历)

 

spring boot -thymeleaf-遍历list和map

controller代码如下

spring boot -thymeleaf-遍历list和map

 

相关文章: