-
Notifications
You must be signed in to change notification settings - Fork 472
Add @EnableHypermediaSupport to default configuration #50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Milestone
Comments
odrotbohm
added a commit
that referenced
this issue
Feb 15, 2013
The annotation registers supporting application components as Spring beans based on the configured hypermedia type. Currently supported are the default rendering as well as HAL. We register a matching LinkDiscoverer implementation as well as the appropriate Jackson modules (if present on the classpath) to support HAL. Upgraded to Spring 3.1.4 to benefit from fix to prevent multiple invocations of ImportBeanDefinitionRegistrars (see SPR-9939 / SPR-9925).
odrotbohm
added a commit
that referenced
this issue
Feb 18, 2013
The annotation registers supporting application components as Spring beans based on the configured hypermedia type. Currently supported are the default rendering as well as HAL. We register a matching LinkDiscoverer implementation as well as the appropriate Jackson modules (if present on the classpath) to support HAL. Upgraded to Spring 3.1.4 to benefit from fix to prevent multiple invocations of ImportBeanDefinitionRegistrars (see SPR-9939 / SPR-9925).
odrotbohm
added a commit
that referenced
this issue
Feb 28, 2013
odrotbohm
added a commit
that referenced
this issue
Feb 28, 2013
In case no ObjectMapper bean has been configured explicitly, the Spring MVC infrastructure registers HttpMessageConverters directly and does not declare them as Spring beans. Thus we now also inspect RequestMappingHandlerAdapter and AnnotationMethodHandlerAdapter instances for their HttpMessageConverters and transparently augment the ObjectMappers backing potentially registered Jackson converters.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The currently available hypermedia support (e.g.
LinkDiscoverer
, Jackson modules to render HAL etc.) has to be configured manually. So if you'd like to work with HAL as hypermedia format you have to configure the accordingLinkDiscoverer
, customize theObjectMapper
setup etc.To ease that we should expose an
@EnableHypermediaSupport
annotation exposing an attribute to configure the supported hypermedia type triggering the registration of the necessary components accordingly.The text was updated successfully, but these errors were encountered: