异常

xiaoxiao2021-02-28  81

1.1048 Column 'typeId' cannot be null will now try the fallback translator

解决: typeId字段为int(8),并且不为空,但是插入数据时有null,导致报错

2,com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'XXX' for key 'XXX'

解:这标识 key 不能有重复值,需要检查一下表中是否有重复数据

3,org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter 'commItemId' not found. Available parameters are [0, 1, param1, param2] 

解:在Dao层添加@Param注解

List<CityAirport> findCityAirport(@Param("cityName") String cityName,@Param("cityCode") String cityCode);

 

转载请注明原文地址: https://www.6miu.com/read-53461.html

最新回复(0)