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

今天在处理个问题的时候遇到了这么个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

posted @ 2017-12-07 17:41  浪子_江流儿  阅读(568)  评论(0编辑  收藏  举报