Springmvc parameter IllegalArgumentException

I encounter the same problem as this page claimed.
The actual problem is that, turning javac target’s debug attribute to on will enable JVM to detect parameter name during runtime.
Otherwise, we need to specify the name of the parameter in

1
2
3
4
//change this
@RequestParam String name
//to this
@RequestParam(value = "name") String name

to enable the runtime detection whatever debug attribute is on or not.


Springmvc parameter IllegalArgumentException
https://rug.al/2015/2015-10-03-springmvc-parameter-IllegalArgumentException/
Author
Rugal Bernstein
Posted on
October 3, 2015
Licensed under