HTTP Status 400 -
博客专区 > Galy_绿 的博客 > 博客详情
HTTP Status 400 -
Galy_绿 发表于2年前
HTTP Status 400 -
  • 发表于 2年前
  • 阅读 177
  • 收藏 0
  • 点赞 0
  • 评论 0

腾讯云 十分钟定制你的第一个小程序>>>   

2016-01-03 14:13:39,194 [http-bio-8080-exec-1] [org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver]-[DEBUG] Resolving exception from handler [public com.shop.pojo.TbItem com.shop.controller.ItemController.getItemById(long)]: org.springframework.web.bind.ServletRequestBindingException: Missing URI template variable 'id' for method parameter of type long
2016-01-03 14:13:39,195 [http-bio-8080-exec-1] [org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver]-[DEBUG] Resolving exception from handler [public com.shop.pojo.TbItem com.shop.controller.ItemController.getItemById(long)]: org.springframework.web.bind.ServletRequestBindingException: Missing URI template variable 'id' for method parameter of type long
2016-01-03 14:13:39,195 [http-bio-8080-exec-1] [org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver]-[DEBUG] Resolving exception from handler [public com.shop.pojo.TbItem com.shop.controller.ItemController.getItemById(long)]: org.springframework.web.bind.ServletRequestBindingException: Missing URI template variable 'id' for method parameter of type long
2016-01-03 14:13:39,196 [http-bio-8080-exec-1] [org.springframework.web.servlet.DispatcherServlet]-[DEBUG] Null ModelAndView returned to DispatcherServlet with name 'shop-manager': assuming HandlerAdapter completed request handling
2016-01-03 14:13:39,196 [http-bio-8080-exec-1] [org.springframework.web.servlet.DispatcherServlet]-[DEBUG] Successfully completed request

2016-01-03 14:13:39,196 [http-bio-8080-exec-1] [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[DEBUG] Returning cached instance of singleton bean 'sqlSessionFactory'

//这句话说白了,就是你定义的URL模板变量中(@RequestMapping 中定义的),和接受参数名不符合,所以就报了这个400 错误

共有 人打赏支持
粉丝 10
博文 131
码字总数 14399
×
Galy_绿
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: