InvalidConnectionAttributeException错误
### Error querying database. Cause: 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.
### The error may exist in com/example/dao/IUerDao.xml
问题:无法识别和解决多个时区,好像是timezone的问题。
解决:在数据库配置URL中,数据库名后加:?serverTimezone=GMT
另外,在useUnicode=true&characterEncoding=utf8中,IDEA不识别“&”符号,可以改为
&