原文:@RequestParam注解使用:Name for argument type [java.lang.String] not available, and parameter name information not found in class file either.

详细错误信息 解决思路 需要指定 RequestParam 的name属性值 源码分析 AbstractNamedValueMethodArgumentResolver.java ...

2018-03-01 15:47 0 10219 推荐指数:

查看详情

No parameter name specified for argument of type

使用SpringMVC绑定基本类型(如String,Integer等)参数时,应通过@RequestParam注解指定具体的参数名称,否则,当源代码在非debug模式下编译后,运行时会引发HandlerMethodInvocationException异常,这是因为只有在debug模式下编译 ...

Fri Jul 28 17:26:00 CST 2017 0 2885
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM