spring-framework
spring-framework copied to clipboard
Add @ModelAttribute support for HTTP interface clients
Add @ModelAttribute support for HTTP interface clients
- Introduces
ModelAttributeArgumentResolverforHttpServiceProxyFactory. - Expands
@ModelAttributeDTO properties into request parameters (query string). - Supports
@BindParamon fields to rename parameter keys.
Usage
- Declare
@ModelAttributeon an interface method parameter:@GetExchange("/search") String search(@ModelAttribute SearchCriteria criteria);- Produces:
/search?q=...&page=...&size=...