java.sql.SQLSyntaxErrorException: Unknown column XXX in ‘fieldList

When adding new fields today, I encountered the problem of java.sql.SQLSyntaxErrorException: Unknown column'police_position' in'fieldList. I first checked whether there was a problem with the spelling of my field, or the entity class did not correspond to the database field. The result is not.
Then when I checked the database field, I found that there was a space in front of the field, so the match failed. It was really careless! ! !

Guess you like

Origin blog.csdn.net/weixin_39040527/article/details/108255942