There is no problem with MYSQL aliases

When JDBC takes the mysql table name field, it always prompts that the column name does not exist. After careful inspection, confirm that the field exists.
The array of field names is obtained through the SqlRowSet.getMetaData() method, and it is found that the obtained alias does not take effect, or the original database field name.
Solution:
jdbc connection mysql string plus parameter
useOldAliasMetadataBehavior=true
Note: The separator & with the original parameter needs to use the escape character: &

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326847853&siteId=291194637