After deploying the bookstore example in the previous book, you can see the login page and cannot enter it at all. The following error occurs. This book is basically useless. You have to buy another book.
17:30:13, 288 [COM. ascent. Dao. hibernate. mermerhibernatedao]-[Error]
Failed to get user information based on user name!
Org. springframework. JDBC. uncategorizedsqlexception: (hibernate operation): encou
Ntered sqlexception [illegal mix of collations (latin1_swedish_ci, implicit) and
(Gb2312_chinese_ci, coercible) for Operation '=']; Nested exception is Java. SQL. s
Qlexception: Illegal mix of collations (latin1_swedish_ci, implicit) and (gb2312 _
Chinese_ci, coercible) for Operation '='
Java. SQL. sqlexception: Illegal mix of collations (latin1_swedish_ci, implicit)
D (gb2312_chinese_ci, coercible) for Operation '='
At com. MySQL. JDBC. mysqlio. checkerrorpacket (mysqlio. Java: 2926)
At com. MySQL. JDBC. mysqlio. sendcommand (mysqlio. Java: 1571)
At com. MySQL. JDBC. mysqlio. sqlquerydirect (mysqlio. Java: 1666)
At com.mysql.jdbc.connection.exe csql (connection. Java: 2978)
At com.mysql.jdbc.connection.exe csql (connection. Java: 2902)
At com.mysql.jdbc.preparedstatement.exe cuteinternal (preparedstatement. Ja
VA: 933)
At com.mysql.jdbc.preparedstatement.exe cutequery (preparedstatement. Java:
1027)
At net. SF. hibernate. impl. batcherimpl. getresultset (batcherimpl. Java: 88)
At net. SF. hibernate. loader. loader. getresultset (loader. Java: 875)
At net. SF. hibernate. loader. loader. doquery (loader. Java: 269)