![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
切克脑
这个作者很懒,什么都没留下…
展开
-
@RequestParam和@PathVariable的区别
关于两者的区别可以用一个请求路径来体现出来 http://localhost/mdeditor/chen?id=39 上面的路径对应的Controller请求为 @DeleteMapping("mdeditor/chen") public void del(@RequestParam("id") Long id) http://localhost/mdeditor/get/39 上面的路径对应的Controller请求为 @GetMapping("get/{id}") public Order原创 2022-04-09 20:43:32 · 93 阅读 · 0 评论 -
There was an unexpected error (type=Bad Request, status=400). Validation failed for object='employee
上面提示了employee封装的对象不正确。400表示无法进行类型转换。 查看你提交表单的那个页面每一项的name属性是否与你实体类中的属性相对应。 经过验证之后发现javabean属性都是正确的。 然后我们打开F12,点击修改 发现所提交的都是正确的 以上都正确后,我们需要着重检查一下Date这个类型,也就是上面的birth这个属性,在springboot中会有默认的...原创 2019-04-25 23:33:42 · 22104 阅读 · 4 评论