Ibatis配置

<sqlMapConfig>
    <settings cacheModelsEnabled="true" enhancementEnabled="true"
        lazyLoadingEnabled="true" errorTracingEnabled="true" maxRequests="32"
        maxSessions="10" maxTransactions="5" useStatementNamespaces="true" />

    <transactionManager type="JDBC">
        <dataSource type="SIMPLE">
            <property name="JDBC.Driver" value="oracle.jdbc.OracleDriver" />
            <property name="JDBC.ConnectionURL" value="jdbc:oracle:thin:@127.0.0.1:1521:WV" />
            <property name="JDBC.Username" value="ibatis" />
            <property name="JDBC.Password" value="ibatis" />

            <property name="Pool.MaximumActiveConnections" value="10" />
            <property name="Pool.MaximumIdleConnections" value="5" />
            <property name="Pool.MaximumCheckoutTime" value="120000" />
            <property name="Pool.TimeToWait" value="500" />
            <property name="Pool.PingQuery" value="select 1 from table_name" />
            <property name="Pool.PingEnabled" value="false" />
            <property name="Pool.PingConnectionsOlderThan" value="1" />
            <property name="Pool.PingConnectionsNotUsedFor" value="1" />
        </dataSource>
    </transactionManager>

    <sqlMap resource="com/wv1124/sqlmap/T_User.xml" />
<!--    <sqlMap resource="com/wv1124/sqlmap/T_Role.xml" />-->
<!--    <sqlMap resource="com/wv1124/sqlmap/T_Menu.xml" />-->
</sqlMapConfig>
 

你可能感兴趣的:(oracle,xml,ibatis,jdbc)