运行时异常:nested exception is org.apache.ibatis.exceptions.PersistenceException
作者:聚福
发表于:2025-01-19
运行时异常:nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: java.lang.NumberFormatException: For input string: “A” ### Cause: java.lang.NumberFormatException: For input string: “A”
异常报错:
mapper映射文件:
实体类:
原因:由于实体类中type是string类型,而mapper文件中却把type当成数字进行了判断,字符串是不能进行 !=0
的判断的,所以报错了
版权声明
本文系作者发表,未经许可,不得转载