Skip to content

linkTo and methodOn with custom RequestMappingHandlerMapping #144

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

Closed
benneq opened this issue Jan 25, 2014 · 1 comment
Closed

linkTo and methodOn with custom RequestMappingHandlerMapping #144

benneq opened this issue Jan 25, 2014 · 1 comment
Assignees
Milestone

Comments

@benneq
Copy link

benneq commented Jan 25, 2014

I just wanted to implement/use Spring Hateoas, but I've got a problem:

I've got a custom RequestMappingHandlerMapping registered in WebMvcConfigurationSupport, which scans all Controllers for an additional annotation (@apiversion) in order to build custom URLs like: /v1/users if the Controller ist annotated with @RequestMapping("users") @apiversion(1).

Is it possible to modify Spring Hateoas to use the registered RequestMappingHandlerMapping in order to construct URLs using linkTo and methodOn?

@odrotbohm
Copy link
Member

Duplicates #118.

odrotbohm added a commit that referenced this issue Jan 25, 2021
We now look up the ConversionService available in the ApplicationContext from Web(Mvc|Flux)LinkBuilder. Some API tweaks to WebHandler to allow the lookup from the current request. The general fallback is now the invocation of …toString() on the parameter value.

Fixes #118, #352, #144, #149.
odrotbohm added a commit that referenced this issue Jan 25, 2021
We now look up the ConversionService available in the ApplicationContext from Web(Mvc|Flux)LinkBuilder. Some API tweaks to WebHandler to allow the lookup from the current request. The general fallback is now the invocation of …toString() on the parameter value.

Fixes #118, #352, #144, #149.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants