jndi连接池配置

97 阅读1分钟
<?xml version="1.0" encoding="utf-8" ?>
<Context>
    <Resource name="jdbc/dbhui" type="javax.sql.DataSource"
    maxActive="4"
    maxIdle="2"
    username="root"
    maxWait="1000"
    driverClassName="com.mysql.jdbc.Driver"
    password="1234"
    url="jdbc:mysql://localhost:3306/dbhui" />
</Context>

image.png

image.png