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

The SDK directory does not exist (ubuntu 16.04) (react native) -

python - How to clone or copy a list? -

python - How to use Celery in Tornado with redis as broker and backend? -