java.sql.SQLException: Error; uncategorized SQLException; SQL state [null]; error code [0];

Error Messages:
org.springframework.jdbc.UncategorizedSQLException: Error attempting to get column ‘user_photo’ from result set.  Cause: java.sql.SQLException: Error; uncategorized SQLException; SQL state [null]; error code [0]; Error; nested exception is java.sql.SQLException: Error

at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:89)

Solution:
Add two annotations to the corresponding entity class

//@Data Generate getter,setter ,toString and other functions
//@NoArgsConstructor Generate constructor without parameters
//@AllArgsConstructor //generate full-parameter constructor

Similar Posts: