![](https://img.haomeiwen.com/i3629436/10e1aca847a5aad3.png)
往上几句查找错误信息
![](https://img.haomeiwen.com/i3629436/dcc37872293bea0b.png)
显示当前字段无法匹配的原因。因为使用了JpaRepository,有一定的映射规则,对于表对应的实体类的成员变量有严格的限制。
例如,数据库列名为student_id、student_name,则Java的Student类的成员变量要命名为studentId和studentName。即把下划线改为驼峰写法。
往上几句查找错误信息
显示当前字段无法匹配的原因。因为使用了JpaRepository,有一定的映射规则,对于表对应的实体类的成员变量有严格的限制。
例如,数据库列名为student_id、student_name,则Java的Student类的成员变量要命名为studentId和studentName。即把下划线改为驼峰写法。
本文标题:使用jpa操作MySQL遇到org.springframewor
本文链接:https://www.haomeiwen.com/subject/brlgnxtx.html
网友评论