博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
HTTP Status 400 -
阅读量:6866 次
发布时间:2019-06-26

本文共 1833 字,大约阅读时间需要 6 分钟。

hot3.png

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 错误

转载于:https://my.oschina.net/u/2450896/blog/596458

你可能感兴趣的文章
Prepack——JavaScript代码优化工具
查看>>
全球安全行业融资收购简报(2015年11月)
查看>>
【硬创邦】跟hoowa学做智能路由(二):从芯片开始
查看>>
扫脸付、VR付实现了, “KongFu”空付还远吗?
查看>>
2016网络安全威胁四大趋势:人才全球缺货
查看>>
福布斯:云计算有人气 但未到最佳状态
查看>>
虚拟化的逆袭:OpenFlow和SDN
查看>>
俄罗斯组织机构被网络间谍定向攻击
查看>>
英特尔AI CTO:人工智能训练需要新型芯片架构
查看>>
小米为什么把智能家居定义为“轻智能”?
查看>>
向DevOps环境过渡?别犯这四种错误
查看>>
从上菜太慢,谈事件管理、流程管理、数据管理
查看>>
再论基于ARM芯片的Mac 这真是你想要的?
查看>>
告别卸载软件难 四大方法轻松搞定
查看>>
看“风水反转”技术如何危害云安全
查看>>
大数据产业发展提速 500亿蛋糕待挖掘
查看>>
插画师自述:类似PaintsChainer 这样的人工智能上色网站,未来会取代我们吗?...
查看>>
摩尔定律时代即将落幕
查看>>
北京银行首席信息官王健出任副行长
查看>>
用好“数据”这笔大资产
查看>>