异常
m0_37933543
这个作者很懒,什么都没留下…
展开
-
报错:java.net.BindException: Address already in use: JVM_Bind <null>:8080
在开启Tomcat时出现了异常,如下图所示:1,按Windows键+R,输入cmd,进入命令行模式,如下图所示:2.cmd命令模式下输入cd c:\windows\system32进入到系统文件夹下,输入netstat -ano,然后找到占用8080端口的那个进程 如下图所示:3.PID号为2552的进程占用着8080端口,打开任务管理器查看详细信息,查找PID号为2552进程,点击结...原创 2019-11-08 14:54:58 · 331 阅读 · 0 评论 -
Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdb
异常错误:Loading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class iscom.mysql.cj.jdbc.Driver’. The driver is automatically registered via the SPI and manual loading of the driver cla...转载 2019-11-07 17:21:39 · 129 阅读 · 0 评论 -
You must configure either the server or JDBC driver (via the serverTimezone configuration property)
在连接字符串后面加上?serverTimezone=UTC其中UTC是统一标准世界时间。完整的连接字符串示例:jdbc:mysql://localhost:3306/test?serverTimezone=UTC或者还有另一种选择:jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=UTF-8,这个是解...原创 2019-11-07 17:12:26 · 123 阅读 · 0 评论 -
报错:Cannot resolve bean 'dataSource'
报错:Cannot resolve bean ‘dataSource’解决方法在 File ->Project Structrue-> Modules->项目名->spring中添加 xml配置文件可以解决。原创 2019-11-06 15:18:45 · 1229 阅读 · 0 评论