


因此,根据Tomcat文档,此spring bean定义是正确的,但是,当我启动应用程序时,出现CNF异常: Caused by: .CannotLoadBeanClassException: Cannot find class for bean with name 'dataSource' defined in class path resource nested exception is : .pool. The following pooling DataSource implementations are supported by this builder. 我正在尝试使用tomcat-dbcp.jar的7.0.30版本为tomcat-dbcp创建一个弹簧管理的独立池 The maximum number of connections that should be kept in the idle pool if isPoolSweeperEnabled () returns false. The Tomcat Connection pool is configured as a resource described in The Tomcat JDBC documentation With the only difference being that you have to specify the factory attribute and set the value to .pool.DataSourceFactory Standalone The connection pool only has another dependency, and that is on tomcat-juli.jar.
