尝试使用spring boot安装hal浏览器,但出现以下错误:
Dependency 'org.springframework.data:spring-data-rest-hal-browser:' not found
我想知道spring插件之间是否有官方的兼容性参考,但是无论如何,这里我默认使用了最新版本。
这是我的pom文件:
...
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.example.ec</groupId>
<artifactId>explorecali</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>explorecali</name>
<description>Explore California MicroService</description>
<properties>
<java.version>15</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-rest</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-rest-hal-browser</artifactId>
</dependency>
</dependencies>
...
1条答案
按热度按时间nhjlsmyf1#
这看起来像是一个与最新版本spring不兼容的问题,解决方案是将spring boot降级到2.3.5.0版本