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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -