我们在使用idea编写javaweb时难免会使用到MySQL(数据库)里的数据来使得页面“动”起来,但我们使用Java连接MySQL时经常会有一个类我们需要使用,这个类 就是:
Class.forName("com.mysql.jdbc.Driver")
但是在使用tomcat服务器加载jsp文件时极有可能出现HTTP Status 500 – Internal Server Error的问题,500问题中又有三个问题,第一个是时区问题,具体代码如下图
javax.servlet.ServletException: java.sql.SQLException: The server time zone value ' й ʱ ' is unrecognized or represents more than one time zone. You must co