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
Unless I'm missing something, the use of DefaultFormattingConversionService means there is no way to support custom parameters in MVC Controllers using (for example) linkTo/methodOn. If I have a controller method like this:
@RequestMapping(/{vegetableId}
public void get(@PathVariable("vegetableId") Vegetable vegetable)
Then even if I register a custom Converter to convert the object to a string representation, the linkTo/methodOn won't work because the Converter isn't part of the DefaultFormattingConversionService. Shouldn't the AnnotatedParametersParameterAccessor be referencing a ConversionService from the ApplicationContext?
The text was updated successfully, but these errors were encountered:
Existing ConversionService is fixed as a static inside BoundMethodParameter. This introduces ability to inject an alternative ConversionService.
Related issues: #352, #149
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.
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.
Unless I'm missing something, the use of DefaultFormattingConversionService means there is no way to support custom parameters in MVC Controllers using (for example) linkTo/methodOn. If I have a controller method like this:
Then even if I register a custom Converter to convert the object to a string representation, the linkTo/methodOn won't work because the Converter isn't part of the DefaultFormattingConversionService. Shouldn't the AnnotatedParametersParameterAccessor be referencing a ConversionService from the ApplicationContext?
The text was updated successfully, but these errors were encountered: