原文:No parameter name specified for argument of type

在使用SpringMVC绑定基本类型 如String,Integer等 参数时,应通过 RequestParam注解指定具体的参数名称,否则,当源代码在非debug模式下编译后,运行时会引发HandlerMethodInvocationException异常,这是因为只有在debug模式下编译,其参数名称才存储在编译好的代码中。 譬如下面的代码会引发异常: Java代码 RequestMappin ...

2017-07-28 09:26 0 2885 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM