@ModelAttribute support? #331
Replies: 2 comments
-
|
It would definitely be useful. In fact, this feature is already partially implemented here: However, I hadn’t realized that @ModelAttribute was tied to this default mapping behavior for query parameters. As a result, anything annotated with @ModelAttribute is even excluded from the documentation here: Thanks to this newer and more comprehensive Spring documentation, this exclusion could now be removed and the feature fully implemented. |
Beta Was this translation helpful? Give feedback.
-
|
Interesting. Yeah, it looks like @ModelAttribute can do a lot of things? I had misread code and the properties were actually part of a Once I get a few days free, I'd be up for trying a PR that tries to add this functionality. Just wanted to see your thoughts on it |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, thanks for this very useful plugin!
When you have an API that supports a large amount of query parameters, an alternative to marking each with
@RequestParamis using@ModelAttributeto define a large list of query params in a single objecthttps://docs.spring.io/spring-framework/reference/web/webmvc/mvc-controller/ann-methods/modelattrib-method-args.html
Would there be any interest in adding such a feature to this maven plugin?
Beta Was this translation helpful? Give feedback.
All reactions