标签:padding ring 创建 pre dep -- table price ram
<!--模板依赖--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-freemarker</artifactId> </dependency>
ftl文件中的语法:基础模板和html一样
<html> <head> <title>car</title> </head> <body> <table align="center" border="1px" cellspacing="0px" cellpadding="10px"> <thead> <tr> <th>品牌</th> <th>价格</th> </tr> </thead> <tbody> <#list carList as car> <tr> <td>${car.brand}</td> <td>${car.price}</td> </tr> </#list> </tbody> </table> </body> </html>
标签:padding ring 创建 pre dep -- table price ram
原文地址:https://www.cnblogs.com/lqcswy/p/11802647.html