In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Error message:
ERROR c.alibaba.druid.pool.DruidDataSource-recyle errorjava.sql.SQLException: Connection.clearWarnings cannot be called ona closed connectionat org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.getSqlException (ExceptionMapper.java:271) at org.mariadb.jdbc.MariaDbConnection.clearWarnings (MariaDbConnection.java:1070) at com.alibaba.druid.filter.FilterChainImpl.connection_clearWarnings (FilterChainImpl.java:165) at com.alibaba.druid.filter.FilterAdapter.connection_clearWarnings (FilterAdapter.java:771) at com.alibaba.druid.filter.FilterChainImpl. Connection_clearWarnings (FilterChainImpl.java:161) at com.alibaba.druid.proxy.jdbc.ConnectionProxyImpl.clearWarnings (ConnectionProxyImpl.java:108) at com.alibaba.druid.pool.DruidConnectionHolder.reset (DruidConnectionHolder.java:295) at com.alibaba.druid.pool.DruidDataSource.recycle (DruidDataSource.java:1662)
Question:
Spring.datasource.druid.initial-size=1spring.datasource.druid.min-idle=1spring.datasource.druid.max-active=20spring.datasource.druid.test-on-borrow=truespring.datasource.druid.stat-view-servlet.allow=truespring.datasource.druid.max-wait=60000
Solution:
Spring.datasource.druid.initial-size=1spring.datasource.druid.min-idle=1spring.datasource.druid.max-active=20spring.datasource.druid.test-on-borrow=falsespring.datasource.druid.test-while-idle=truespring.datasource.druid.validation-query=select'X'
Because of less configuration of this, so get the connection does not check, cry dizzy.
Blame yourself for being too young.
Spring.datasource.druid.validation-query=select'X'
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 210
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.