关于[Cannot determine value type from string ‘xxx‘]的一些问题

作者: xiaozhu 发布时间: 2023-01-05 浏览: 862 次 编辑

关于[Cannot determine value type from string ‘xxx’]的问题

Cannot determine value type from string '椿樱社区老年助餐点'; nested exception is java.sql.SQLDataException: Cannot determine value type from string '椿樱社区老年助餐点'

1、产生

实体:数据类型不对

private Integer shopName;

2、解决

改成String 类型

private String shopName;

顺利解决