报错处理

image
image

错误为:实体类字段类型设置错误把String 类型写成了 Long

<resultMap id="studentMap" type="Student">
    <id column="student_id" property="student_id"/>
    <result column="student_name" property="student_name"/>
    <!-- ... -->
</resultMap>
<select id="findAll" resultMap="studentMap">
```html
id column值应该为链接表的条件错写成了表自增长没有意义的字段
![image](https://img2024.cnblogs.com/blog/3764473/202601/3764473-20260131094736711-1892455887.png)
![image](https://img2024.cnblogs.com/blog/3764473/202601/3764473-20260131102740452-1998576236.png)

idea中更新成功但是表没有改可能是表权限的问题
image

image

解决方法

image
image

修改方案

1.hiredate把date类型改为了String类型
2.@Autowire只能拿一个不能拿两个
image

错因:没有搞清楚数据库里的属性值和在qo定义的属性放的位置

image
image

错因:没有刷新maven

posted on 2026-02-01 15:23  Zyy_yyy  阅读(0)  评论(0)    收藏  举报