我已将spring framework 3用于我的应用程序.在Netbeans中开发的一切都很好但是我需要一个自定义构建并完成相同的构建没有任何问题,但我得到以下错误调用以下方法时出错
@RequestMapping(value = "/security/login", method = RequestMethod.POST)
public ModelAndView login(@RequestParam String userName, @RequestParam String password,
HttpServletRequest request) {
......................
Run Code Online (Sandbox Code Playgroud)
但是在使用netbeans创建战争时没有问题(我确信这是关于编译问题)你有没有关于这个问题的任何经验......还有任何额外的javac参数用于编译相同的(netbeans用于那里的自定义任务汇编)
类型异常报告
信息
description The server encountered an internal error () that prevented it from fulfilling this request.
例外
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.web.bind.annotation.support.HandlerMethodInvocationException: Failed to invoke handler method [public org.springframework.web.servlet.ModelAndView com.mypackage.security.controller.LoginController.login(java.lang.String,java.lang.String,javax.servlet.http.HttpServletRequest)]; nested exception is java.lang.IllegalStateException: No parameter name specified for argument of type [java.lang.String], and no parameter name information found in class file either. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:659) …