springboot添加Thymeleaf支持

一、pom.xml添加依赖


    org.springframework.boot
    spring-boot-starter-thymeleaf

二、application.properties添加设置,开发环境设置Thymeleaf缓存不可用

spring.thymeleaf.cache=false
三、画面做成,示例参考以下代码:




    Getting Started: Serving Web Content
    


	
添加商品

ID 商品编号 商品名称 操作
编辑 删除


你可能感兴趣的:(Thymeleaf,springboot)