spring web - Prevent query parameter from appearing in `@RequestParam` map -
there may better way structure api i'm open suggestions legacy code. have similar following:
class foo { string bar string bat } and
@requestmapping(value = '/path', method = requestmethod.get) string func(foo foo, @requestparam map<string, string> map) { ... } if have query string of bar=one&baz=two, instance of foo correctly have bar property set one map parameter contain key/value pair of [bar:one]. suppose makes sense, not expected.
short of removing map properties or dealing directly httpservletrequest, know of way keep happening? thanks.
Comments
Post a Comment