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
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
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:
- Error attempting to get column ‘xxx’ from result set. Cause: java.sql.sqlexception: unable to convert to internal representation. Error resolution during Oracle database query
- [Solved] Cause: java.sql.SQLException: The used SELECT statements have a different number of columns
- java.sql.SQLException: Fail to convert to internal
- [Solved] UserInfo()’ in ‘com.example.gmall.cart.pojo.UserInfo’ cannot be applied to ‘(long, java.lang.String)’
- [Solved] Hibernate Error: org.hibernate.InstantiationException: No default constructor for entity
- [Solved] gbase8s Error: Caused by: java.sql.SQLException: Transactions not supported
- [Solved] Error creating bean with name ‘entityManagerFactory’ defined in class path resource
- java.sql.SQLException: Got error 28 from storage
- Java.math.BigInteger cannot be cast to java.lang.Long [How to Solve]
- SSM Project Error: java.sql.SQLException: Access denied for user ‘????…§’@’localhost’ (…