Spring
黎明艾
医疗图像AI处理方向硕士、ChatGPT、AI启航探索!
展开
-
springboot状态码返回406,问题描述:Could not find acceptable representation
首先我先百度了一下406含义,并结合其他博主的文章,分析出我个人的情况springboot在响应controller接口的时候,应该没有返回post请求中的json格式数据(或者是无法返回)。从上述代码看出,我返回了Result对象,应该会被springboot封装成一个json对象,再返回给前端了,但是这里应该出了问题。排查一下,果然Result类中忘记添加getter和setter方法,加上getter和setter方法后,请求成功了。...原创 2022-07-15 19:37:46 · 1011 阅读 · 0 评论 -
Unsatisfied dependency expressed through field ‘adminMapper‘可能的一种情况
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘adminController’: Unsatisfied dependency expressed through field ‘adminMapper’; nested exception is org.springframework.beans.factory.BeanCreationException: Er原创 2021-10-19 17:05:35 · 1362 阅读 · 0 评论 -
Invalid bound statement (not found)解决方法(个人笔记)
Mapper接口与Mapper.xml文件不匹配(找不到)a. 原作者,blog链接:Invalid bound statement (not found)出现原因和解决方法_陈大豆的博客-CSDN博客b. 验证xml中的namespace是否为Mapper接口的全名称,如com.helloword.mapper.AdminMapper(找到Mapper接口,右键复制reference)c. 验证xml中的id与接口中的方法名是否一致(仔细校验)d. 检查pom.xml中的build下是否配置好..原创 2021-10-19 16:44:42 · 594 阅读 · 0 评论