如何避免error maxidle is deprecated

如题所述

把缓存,线程池神马的觉得能用上的都用上。还有一个窍门就是在程序刚加载的时候显示一个logo,后台同时加载数据库连接的相关代码,这样在程序运行的时候就可以用已完成的连接字符串和连接命令来连接数据库了
温馨提示:答案为网友推荐,仅供参考
第1个回答  2017-08-04
the maxIdle property for Druid compatible with DBCP, maxIdle is a confusing concept. the connection pool should only maxPoolSize and minPoolSize,druid retain only maxActive and minIdle, respectively the equivalent maxPoolSize and minPoolSize.
相似回答