No parameter name specified for argument of type
来源:互联网 发布:冰种天河石有优化过吗 编辑:程序博客网 时间:2024/05/07 23:47
背景:Ant将web app打包成war包后,部署到tomcat容器中,在前端页面请求参数时,后台报错:No parameter name specified for argument of type,
原因:在springmvc的controller类中,方法请求参数没有加@RequestParam 注解的情况下,如果在非debug模式下编译源代码,就会此错误
解决方法:
1、在参数前添加@RequestParam注解
2、Ant 打war包时,开户debug编译模式
<target name="complie" depends="init" >
<javac srcdir="" destdir="" debug="on">
~~~~
建议方法1
0 0
- No parameter name specified for argument of type
- No parameter name specified for argument of type [java.lang.String]
- No parameter name specified for argument of type [java.lang.String],
- No parameter name specified for argument of type [java.lang.Integer]
- Name for argument type [java.lang.String] not available, and parameter name information not found in
- Name for argument type [java.lang.String] not available, and parameter name information not found in
- Name for argument type [java.lang.String] not available, and parameter name information not found in
- Argument for @NotNull parameter 'name' of com/android/tools/idea/welcome/Platform.<init> must not be
- Argument for @NotNull parameter 'name' of com/android/tools/idea/welcome/Platform.<init> must not be
- No value specified for parameter 1
- No value specified for parameter 3
- SpringMVC:Name for argument type ERROR
- No selector attribute (cookie/header/name/parameter) was specified
- 在安装Android Studio之后,启动时报错:Argument for @NotNull parameter 'name' of com/android/tools/idea/
- no column name was specified for column
- Struts2 启动时报警告:no default parameter defined for result of type json
- java.sql.SQLException: No value specified for parameter 16
- ORA-00099: warning: no parameter file specified for ASM instance
- JDBC
- hdu 4004 The Frog's Games 【二分】
- nyoj 79 拦接导弹
- 学习生物信息学的理由
- 【JavaScript】——基础(二)
- No parameter name specified for argument of type
- Bootstrap全局CSS样式之排版
- 【读书笔记】iOS-GCD-block-后台运行
- 股票学习(K线分析)
- [智力题]
- Win7操作系统下搭建FTP服务器
- C++单例模式实现
- C与C++的区别
- 7,鼠标学习四-滚轮