You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Spring HATEOAS 1.5.6, I am writing a REST controller (/activity) that can return multiple subtypes of ActivityDto (ActivityMentionDto, ActivityReplyDto, etc.). I want to be able to annotate the controller with @ExposesResourceFor(ActivityDto.class) and use EntityLinks to generate self links for the concrete classes. However, this produces this error at runtime:
Cannot determine link for com.example/ActivityMentionDto! No EntityLinks instance found supporting the domain type!
As @ExposesResourceFor takes only a single Class parameter and is not repeatable, I would like @ExposesResourceFor to support subclasses of the declared type in the absence of a more specific declaration.
The text was updated successfully, but these errors were encountered:
With Spring HATEOAS 1.5.6, I am writing a REST controller (
/activity
) that can return multiple subtypes ofActivityDto
(ActivityMentionDto
,ActivityReplyDto
, etc.). I want to be able to annotate the controller with@ExposesResourceFor(ActivityDto.class)
and useEntityLinks
to generate self links for the concrete classes. However, this produces this error at runtime:As
@ExposesResourceFor
takes only a singleClass
parameter and is not repeatable, I would like@ExposesResourceFor
to support subclasses of the declared type in the absence of a more specific declaration.The text was updated successfully, but these errors were encountered: