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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -