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