平时没有amp;就是

jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=GBK
加入hibernate之后需要修改配置中的串,加上amp;转义字符
jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=GBK

相关文章: