gpt4 book ai didi

java - 找不到项目 'org.springframework.boot:spring-boot-starter-parent:2.4.0'

转载 作者:行者123 更新时间:2023-12-03 10:04:09 25 4
gpt4 key购买 nike

我正在遵循此指南:https://spring.io/guides/gs/serving-web-content/

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.4.0</version>
<relativePath/>
</parent>

<groupId>org.example</groupId>
<artifactId>plats-bruts</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
<java.version>1.8</java.version>
</properties>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

</project>
但是我在pom上遇到了这个问题:
Project 'org.springframework.boot:spring-boot-starter-parent:2.4.0' not found
但是这里 https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-parent/2.4.0

最佳答案

我只是遇到了类似的问题。我正在使用IntelliJ IDEA Ultimate 2020.2。版本号2.4.0为红色,并且消息与您的相同。
选择"file"->“使缓存无效/重新启动...”,然后选择“使无效并重新启动”选项解决了该问题。我想那只是一个过时的缓存。

关于java - 找不到项目 'org.springframework.boot:spring-boot-starter-parent:2.4.0',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64953515/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com