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 -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

What is happening when Matlab is starting a "parallel pool"? -