2020
10-30
10-30
Tomcatc3p0配置jnid数据源2种实现方法解析
使用c3p0导入c3p0jar包<!--https://mvnrepository.com/artifact/com.mchange/c3p0--><dependency><groupId>com.mchange</groupId><artifactId>c3p0</artifactId><version>0.9.5.2</version></dependency>在tomcat的context.xml文件加入数据源配置<Resourceauth="Container"description="DBConnection"driverClass="com.mysql.jdbc.Driver"maxPoolSize="100"minPoolSize="2"acquireIncre...
继续阅读 >