java.lang.IllegalArgumentException: Name for argument type [java.lang.String]
not available, and parameter name information not found in class file either.
not available, and parameter name information not found in class file either.
@RequestMapping(value = "/security/login", method = RequestMethod.POST)
public ModelAndView login(@RequestParam String userName, @RequestParam String password,
HttpServletRequest request) {
......................
Argument names are stored in the compiled code only when it's compiled in debug mode,
so you should either compile it in debug mode or supply
@RequestParam
with explicit parameter names.The latter approach is more reliable because it doesn't depend on the environment:
@RequestMapping(value = "/security/login", method = RequestMethod.POST)
public ModelAndView login(@RequestParam("userName") String userName,
@RequestParam("password") String password,
HttpServletRequest request) {
......................
https://stackoverflow.com/questions/2622018/compile-classfile-issue-in-spring-3