今天调试Spring MVC项目,遇到如下问题,

org.springframework.web.bind.MissingServletRequestParameterException:

Required String parameter 'username' is not present

username表参数

一看是自己URL里没输入参数

把输入从

http://localhost:8080/user/find.action

变为

http://localhost:8080/user/find.action?username=zhangsan&password=XXX

即可



转自:

http://blog.csdn/sinat_28729797/article/details/50686925

更多推荐

Spring MVC org.springframework.web.bind.MissingServletRequestParameterException解