Java中JDBC基础配置

Java中JDBC基础配置

<resource 
    auth="Container" 
    driverclassname="oracle.jdbc.driver.OracleDriver" 
    maxidle="10" maxtotal="30" 
    maxwaitmillis="10000" 
    name="jdbc/oracle" 
    password="123" 
    type="javax.sql.DataSource" 
    url="jdbc:oracle:thin:@39.108.83.204:1521:orcl" 
    username="scott">
</resource>

<resource 
    auth="Container" 
    driverclassname="com.mysql.jdbc.Driver" 
    maxidle="10" 
    maxtotal="30" 
    maxwaitmillis="10000" 
    name="jdbc/mysql" 
    password="123" 
    type="javax.sql.DataSource" 
    url="jdbc:mysql://127.0.0.1:3306/imooc" 
    username="root">
</resource>

猜你喜欢

转载自www.cnblogs.com/hglibin/p/9766219.html
今日推荐