一. Mysql
- "Zero date value prohibited"
url上拼接 zeroDateTimeBehavior=convertToNull
com.alibaba.druid.pool.DruidDataSource : create connection Error
java.lang.ExceptionInInitializerError: null
at com.mysql.jdbc.Util.stackTraceToString(Util.java:378)
at com.mysql.jdbc.Util.(Util.java:121)
at com.mysql.jdbc.NonRegisteringDriver.parseURL(NonRegisteringDriver.java:733)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:321)
at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:156)
at com.alibaba.druid.filter.stat.StatFilter.connection_connect(StatFilter.java:218)
at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:150)
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1560)
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1623)
at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:2468)
Caused by: java.lang.RuntimeException: Can't load resource bundle due to underlying exception java.util.MissingResourceException: Can't find bundle for base name com.mysql.jdbc.LocalizedErrorMessages, locale en_US
at com.mysql.jdbc.Messages.(Messages.java:54)
... 10 common frames omitted
Caused by: java.util.MissingResourceException: Can't find bundle for base name com.mysql.jdbc.LocalizedErrorMessages, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1581)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1396)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:782)
at com.mysql.jdbc.Messages.(Messages.java:52)文章来源:https://www.toymoban.com/news/detail-829112.html
... 10 commo文章来源地址https://www.toymoban.com/news/detail-829112.html
到了这里,关于数据源使用问题记录的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!