天天看点

org.springframework.dao.TransientDataAccessResourceException: Error attempting to get column ‘tcont‘错误居然是因为实体类变量顺序和mapper的SQL的select 顺序不一样

org.springframework.dao.TransientDataAccessResourceException: Error attempting to get column ‘tcont’ from result set. Cause: java.sql.SQLException: Invalid value for getLong() - '

<img src="http://192.168.31.163:8001/file/

错误居然是因为实体类变量顺序和mapper的SQL的select 顺序不一样