万万哇 发表于 2025-3-23 04:58:50

数据库非常 Cause: java.sql.SQLDataException: Cannot determine value type from string

使用mybatisplus查询表中指定字段,导致非常
org.springframework.dao.DataIntegrityViolationException: Error attempting to get column 'vendor_name' from result set.  Cause: java.sql.SQLDataException: Cannot determine value type from string 
如:
https://i-blog.csdnimg.cn/direct/91b561740b614c3f954451345e00195e.png
实体:
https://i-blog.csdnimg.cn/direct/98c3f164227947b4a357ad9d79bed191.png
导致原因数据库实体未加lombok的 NoArgsConstructor 注解导致
解决方式一:只保存lombok的@Data注解
https://i-blog.csdnimg.cn/direct/82693af3a984417a8f9f4e64b772c726.png
解决方式二:加上NoArgsConstructor注解
https://i-blog.csdnimg.cn/direct/4b904b45d95845a7bf9b3e855745dcb2.png

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: 数据库非常 Cause: java.sql.SQLDataException: Cannot determine value type from string