在tomcat发布项目遇到的问题

今天从SVN上把系统导入本地发生了异常,问题如下:

  • java.math.BigInteger cannot be cast to java.lang.Long

百度一番后发现是因为使用Mysql8.0后依然使用5.0的Jar包连接导致直接报错java.math.BigInteger cannot be cast to java.lang.Long,在网上直接下载了最新版的mysql的安装包,然后更新Jar包,在系统中重新build   path后,按照下图的方式将Mysql  8.0的jar包导入到库中,重新运行tomcat.

  • 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.

重新提交后报的时间区域问题,将时区换为当前时区即可,用root登录后,按照如下界面进行操作即可。

原文地址:https://www.cnblogs.com/yjh123/p/10916767.html