在springboot使用thymeleaf

         <dependency>
            <groupId>org.thymeleafgroupId>
            <artifactId>thymeleaf-spring5artifactId>
        dependency>
        <dependency>
            <groupId>org.thymeleaf.extrasgroupId>
            <artifactId>thymeleaf-extras-java8timeartifactId>
        dependency>

使用的版本为8的时候导入thymeleaf的maven配置

不需要写入版本号,springboot会自带版本号
在xml配置文件中进去springboot查看版本号的步骤为:
1.
在springboot使用thymeleaf_第1张图片
2. 在springboot使用thymeleaf_第2张图片
3. 在springboot使用thymeleaf_第3张图片
在这里面就可以查看到springboot中全部配置的版本号,如果需要修改springboot中的版本直接去修改第一张图中的version

你可能感兴趣的:(web,spring,maven)