1. 程式人生 > >Caused by: java.sql.SQLException: Column 'show_type' not found

Caused by: java.sql.SQLException: Column 'show_type' not found

art 數據 資料 連接符 detail 遇到 spa 數據庫連接 處理

今天在處理個問題的時候遇到了這麽個bug,難住了老半天.網上找了挺多資料.這是因為hibernate在別名上的不支持.處理方案是在jdbc數據庫連接上計入了這麽個配置.

綠色的相當於是個連接符.

url="jdbc:mysql://localhost:3306/game_center?useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true"

參考的博文是:http://blog.csdn.net/tang745163962/article/details/41726443

Caused by: java.sql.SQLException: Column 'show_type' not found