- 博客(2)
- 收藏
- 关注
原创 记一次接口使用json格式绑定参数失败的经历
记一次接口使用json格式绑定参数失败的经历控制台报错信息:Resolved [org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing: public void com.hwx.webtest.controller.ReqParamTestController.testPost2(com.hwx.webtest.req.ReqVo)]接口报错信息:{
2021-04-18 16:56:42 412
原创 Could not autowire. No beans of String type found. Checks autowiring problems in a bean class
Could not autowire. No beans of ‘String’ type found. Checks autowiring problems in a bean class.##学习springboot使用的时候编译不通过,报了这个错误,刚开始一直以为是哪里配置错了,始终找不到是哪里的问题。这个错其实是因为我定义了一个有参的构造器,却没有再显示定义一个无参的构造器,才报的这个错误。解决办法:加上无参构造器。如果是是使用lombok,只加@AllArgsConstructor这个注
2020-06-15 21:20:44 8115 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人