MYSQL 数据连接池配置

apache-tomcat-7.0.25\conf

里面的context

  <Resource name="jdbc/bookstore" auth="Container"
     type="javax.sql. DataSource"
     maxActive="100" maxIdle="30" maxWait="10000"
     username="root" password="123456"
     driverClassName="com.mysql.jdbc.Driver"
     url="jdbc:mysql://localhost:3306/bookstore?autoReconnect=true"
      removeAbandoned="true" removeAbandonedTimeout="60" logAbandoned="true"/>

猜你喜欢

转载自zzxy001.iteye.com/blog/1734588