1.XML文件中配置url时,时区等参数应以“&“”隔开。如:
jdbc:mysql://localhost:3307/yourdatabase?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Hongkong"
2.properties文件中配置时以&隔开。如:
jdbc.jdbcUrl=jdbc:mysql://localhost:3307/hibernate_crm?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Hongkong