软件编程
位置:首页>> 软件编程>> java编程>> Maven之导入thymeleaf依赖飘红问题及解决

Maven之导入thymeleaf依赖飘红问题及解决

作者:所遇所思  发布时间:2023-11-12 12:49:05 

标签:Maven,导入,thymeleaf,依赖

Maven导入thymeleaf依赖飘红

1、运行环境

  • 操作系统:win10

  • jdk版本:1.8

  • idea版本:2020.1

  • maven版本:3.3.9

  • springBoot版本:2.0.0

2、遇到的问题

在导入thymeleaf依赖时,刷新maven还是飘红,换版本同样是,我在maven仓库中找有

  • spring-boot-starter-thymeleaf

Maven之导入thymeleaf依赖飘红问题及解决

3、解决办法

1.在本地仓库中删除该文件,重新下载到本地仓库。

2.再换其他版本,我换成2.1.3

<dependency>
           <groupId>org.springframework.boot</groupId>
           <artifactId>spring-boot-starter-thymeleaf</artifactId>
           <version>2.1.3.RELEASE</version>
       </dependency>

附件: 

maven依赖地址

thymeleaf在Maven的版本配置

<properties>
       <thymeleaf.version>3.0.11.RELEASE</thymeleaf.version>
       <thymeleaf-layout-dialect.version>2.1.1</thymeleaf-layout-dialect.version>
</properties>
<dependency>
           <groupId>org.springframework.boot</groupId>
           <artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>

以上为个人经验,希望能给大家一个参考,也希望大家多多支持脚本之家。 

来源:https://blog.csdn.net/nxg0916/article/details/122396030

0
投稿

猜你喜欢

手机版 软件编程 asp之家 www.aspxhome.com