Registry / web-framework / spring-hateoas

spring-hateoas

JSON →
library3.0.3javamavenunverified

Library to support implementing representations for hyper-text driven REST web services.

<dependency> <groupId>org.springframework.hateoas</groupId> <artifactId>spring-hateoas</artifactId> <version>3.0.3</version> </dependency>
INSTALL
IMPORT
SIG · SPRING-HATEOAS
S
spring-hateoas
web-frameworkjavav3.0.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

WebMvcLinkBuilder
org.springframework.hateoas.server.mvc.WebMvcLinkBuilder

Build HATEOAS links for REST controllers.

import org.springframework.hateoas.server.mvc.WebMvcLinkBuilder; import static org.springframework.hateoas.server.mvc.WebMvcLinkBuilder.*; public class Example { public void link() { var link = linkTo(methodOn(MyController.class).myMethod()).withSelfRel(); System.out.println(link.getHref()); } }
Debug
Known issues
breakingSpring HATEOAS 1.x uses Spring 5.x; 2.x uses Spring 6.x and requires Java 17+.
fix
Ensure compatible Spring Boot version (2.x for HATEOAS 1.x, 3.x for HATEOAS 2.x).
affects: >=2.0.0
Upgrade
Version history
3.0.3latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
spring-hateoas — mvn dependency:get spring-hateoas · libregistry