SpringBoot 报错:ERROR 10224 --- [ restartedMain] o.a.tomcat.jdbc.pool.ConnectionPool 已解决

本文介绍了SpringBoot在启动时遇到ERROR 10224,o.a.tomcat.jdbc.pool.ConnectionPool报错,无法创建连接池的解决方案。错误原因涉及MySQL版本与驱动版本不匹配,具体表现为BigInteger无法转换为Long。解决方法是更新pom.xml中MySQL驱动版本至与服务器版本一致,并在application.properties中添加serverTimezone属性。
摘要由CSDN通过智能技术生成

SpringBoot 报错:ERROR 10224 — [ restartedMain] o.a.tomcat.jdbc.pool.ConnectionPool : Unable to create initial connections of pool. 解决方案

eclipse报错

2020-01-30 12:49:04.620 INFO 10224 — [ restartedMain] com.how2java.springboot.Application : Starting Application on LAPTOP-LELBA6ER with PID 10224 (E:\sprbt\springboot_h2j4\target\classes started by int in E:\sprbt\springboot_h2j4)
2020-01-30 12:49:04.620 INFO 10224 — [ restartedMain] com.how2java.springboot.Application : No active profile set, falling back to default profiles: default
2020-01-30 12:49:04.664 INFO 10224 — [ restartedMain] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@3c63065c: startup date [Thu Jan 30 12:49:04 CST 2020]; root of context hierarchy
2020-01-30 12:49:05.698 INFO 10224 — [ restartedMain] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
2020-01-30 12:49:05.704 INFO 10224 — [ restartedMain] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2020-01-30 12:49:05.705 INFO 10224 — [ restartedMain] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.23
2020-01-30 12:49:05.852 INFO 10224 — [ost-startStop-1] org.apache.jasper.servlet.TldScanner : At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
2020-01-30 12:49:05.856 INFO 10224 — [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2020-01-30 12:49:05.856 INFO 10224 — [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 1194 ms
2020-01-30 12:49:05.965 INFO 10224 — [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Mapping servlet: ‘dispatcherServlet’ to [/]
2020-01-30 12:49:05.968 INFO 10224 — [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: ‘characterEncodingFilter’ to: [/]
2020-01-30 12:49:05.968 INFO 10224 — [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: ‘hiddenHttpMethodFilter’ to: [/
]
2020-01-30 12:49:05.968 INFO 10224 — [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: ‘httpPutFormContentFilter’ to: [/]
2020-01-30 12:49:05.968 INFO 10224 — [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: ‘requestContextFilter’ to: [/
]
2020-01-30 12:49:06.359 ERROR 10224 — [ restartedMain] o.a.tomcat.jdbc.pool.ConnectionPool : Unable to create initial connections of pool.

java.sql.SQLException: java.lang.C

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值