org.springframework.jdbc.UncategorizedSQLException: Error attempting to get column 'user_id' from result set. Cause: java.sql.SQLException: Error
; uncategorized SQLException; SQL state [null]; error code [0]; Error; nested exception is java.sql.SQLException: Error
解答:
因为字段类型对应不上,user_id在数据库和实体中类型不一致,数据库中是varchar,实体中是Integer,