About spring jdbc when querying the mysql database, the dataset field name has an alias that returns not the alias but the original field name
The select statement field contains an alias
Eg:select xm fullname from t_user
Result set returned by JdbcTemplate query
Xm
'Zhang San'
'xxx'
'xxxx'
The expected result is:
Fullname
'Zhang San'
'xxx'
'xxx'
Solution: follow the database link url? UseOldAliasMetadataBehavior=true