一、项目中用到的jar包:
二、项目调试报错:
1. org.hibernate.exception.GenericJDBCException: Cannot open connection
Caused by: java.sql.SQLException: The server time zone value '?§???????' is unrecognized or represents more than one time zone.
You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value
if you want to utilize time zone support:
在hibernate.cfg.xml中修改配置
<property name="connection.url">jdbc:mysql://localhost:3306/test?serverTimezone=Asia/Shanghai</property>
2. Exception in thread "main" java.lang.NoClassDefFoundError: antlr/ANTLRException:加入ANTLR.jar包。