java.lang.NoSuchMethodException: com.opensymphony.xwork2.ActionSupport$$EnhancerBySpringCGLIB$$e8358158.edit()

遇到NoSuchMethodException,一般是jar冲突问题,把相应的jar包版本提高或者降低

org.hibernate.exception.SQLGrammarException: could not extract ResultSet

一般是数据库的字段和java实体类的变量名对不上

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.

错误原因:

这是由于mysql数据库和系统时区差异所造成的,需要使用GMT+8时区,需要写成GMT%2B8,否则会被解析为空。

解决方案:

原先的数据库链接是:jdbc:mysql://localhost:3306/jeesite_old?characterEncoding=utf-8
改成:jdbc:mysql://localhost:3306/jeesite_old?serverTimezone=GMT%2B8&characterEncoding=utf-8