Intento instalar Hal Browser con Spring Boot, pero aparece el siguiente error:
Dependency 'org.springframework.data:spring-data-rest-hal-browser:' not foundMe pregunto si hay una referencia oficial de compatibilidad entre los complementos de Spring, pero de todos modos, aquí usé las últimas versiones por defecto.
Aquí está mi archivo 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> ...Se cambió el nombre del paquete a spring-data-rest-hal-explorer . Verifiqué que es compatible con Spring Boot 2.5.6.
ejemplo experto:
<dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-rest-hal-explorer</artifactId> </dependency>ejemplo gradle:
implementation('org.springframework.data:spring-data-rest-hal-explorer')Parece un problema de incompatibilidad con la última versión de Spring, la solución es degradar Spring Boot a 2.3.5.RELEASE
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.5.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent>