天天看點

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 順序不一樣