iBatis sqlMapConfig ¿¡¼­ sqlMap resourceÀ» µû·Î »¬ ¼ö ÀÖ³ª¿ä?

¹ÎºÀ±â   
   Á¶È¸ 5406   Ãßõ 5    

<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE sqlMapConfig      
    PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN"      
    "http://ibatis.apache.org/dtd/sql-map-config-2.dtd">

<sqlMapConfig>

        <properties resource="project/properties/db/database.properties.dev"/>
        <transactionManager type="JDBC">
                <dataSource type="SIMPLE">
                        <property name="JDBC.Driver" value="${driver}" />
                        <property name="JDBC.ConnectionURL" value="${jdbc.url}" />
                        <property name="JDBC.Username" value="${username}" />
                        <property name="JDBC.Password" value="${password}" />
                        <!--OPTIONAL PROPERTIES BELOW -->
                        <property name="JDBC.DefaultAutoCommit" value="true" />
                    <property name="Pool.MaximumActiveConnections" value="100"/>
                    <property name="Pool.MaximumIdleConnections" value="50"/>
                    <property name="Pool.MaximumCheckoutTime" value="120000"/>
                    <property name="Pool.TimeToWait" value="500"/>
                    <property name="Pool.PingQuery" value="select 1"/>
                    <property name="Pool.PingEnabled" value="false"/>
                    <property name="Pool.PingConnectionsOlderThan" value="1"/>
                    <property name="Pool.PingConnectionsNotUsedFor" value="1"/>
                </dataSource>
        </transactionManager>

        <sqlMap resource="sqlmaps/common/selectCommon.xml" />

        <sqlMap resource="sqlmaps/concept/deleteConcept.xml" />
        <sqlMap resource="sqlmaps/concept/insertConcept.xml" />
        <sqlMap resource="sqlmaps/concept/selectConcept.xml" />
        <sqlMap resource="sqlmaps/concept/updateConcept.xml" />

        <sqlMap resource="sqlmaps/conceptRelationship/deleteConceptRelationship.xml" />
        <sqlMap resource="sqlmaps/conceptRelationship/insertConceptRelationship.xml" />
        <sqlMap resource="sqlmaps/conceptRelationship/selectConceptRelationship.xml" />

        <sqlMap resource="sqlmaps/domain/deleteDomain.xml" />
        <sqlMap resource="sqlmaps/domain/insertDomain.xml" />
        <sqlMap resource="sqlmaps/domain/selectDomain.xml" />
        <sqlMap resource="sqlmaps/domain/updateDomain.xml" />

        <sqlMap resource="sqlmaps/domainRelationship/deleteDomainRelationship.xml" />
        <sqlMap resource="sqlmaps/domainRelationship/insertDomainRelationship.xml" />
        <sqlMap resource="sqlmaps/domainRelationship/replaceDomainRelationship.xml" />
        <sqlMap resource="sqlmaps/domainRelationship/selectDomainRelationship.xml" />

        <sqlMap resource="sqlmaps/domainSameConcept/deleteDomainSameConcept.xml" />
        <sqlMap resource="sqlmaps/domainSameConcept/insertDomainSameConcept.xml" />
        <sqlMap resource="sqlmaps/domainSameConcept/selectDomainSameConcept.xml" />
        <sqlMap resource="sqlmaps/domainSameConcept/updateDomainSameConcept.xml" />

        <sqlMap resource="sqlmaps/domainToConcept/deleteDomainToConcept.xml" />
        <sqlMap resource="sqlmaps/domainToConcept/insertDomainToConcept.xml" />
        <sqlMap resource="sqlmaps/domainToConcept/replaceDomainToConcept.xml" />
        <sqlMap resource="sqlmaps/domainToConcept/selectDomainToConcept.xml" />

        <sqlMap resource="sqlmaps/idIssue/replaceIdIssue.xml" />

        <sqlMap resource="sqlmaps/menu/selectMenu.xml" />

        <sqlMap resource="sqlmaps/referenceSystemToConcept/deleteReferenceSystemToConcept.xml" />
        <sqlMap resource="sqlmaps/referenceSystemToConcept/insertReferenceSystemToConcept.xml" />
        <sqlMap resource="sqlmaps/referenceSystemToConcept/replaceReferenceSystemToConcept.xml" />
        <sqlMap resource="sqlmaps/referenceSystemToConcept/selectReferenceSystemToConcept.xml" />

        <sqlMap resource="sqlmaps/term/deleteTerm.xml" />
        <sqlMap resource="sqlmaps/term/insertTerm.xml" />
        <sqlMap resource="sqlmaps/term/replaceTerm.xml" />
        <sqlMap resource="sqlmaps/term/selectTerm.xml" />
        <sqlMap resource="sqlmaps/term/updateTerm.xml" />

        <sqlMap resource="sqlmaps/user/insertUser.xml" />
        <sqlMap resource="sqlmaps/user/updateUser.xml" />
        <sqlMap resource="sqlmaps/user/deleteUser.xml" />
        <sqlMap resource="sqlmaps/user/selectUser.xml" />

</sqlMapConfig>

ÇöÀç µ¿ÀÏÇÑ ½ºÅ°¸¶¸¦ °¡Áø DB¸¦ 4°³ »ç¿ëÁßÀε¥, ±×·¡¼­ SqlMapConfig.xmlµµ À̸§ÀÌ ´Ù¸£°Ô ³»¿ëÀº ¶È°°ÀÌ 4°³ÀÔ´Ï´Ù.
±Ùµ¥ sqlMap resource¸¦ Ãß°¡Çϸé ÆÄÀÏ 4°³¿¡ ¸ðµÎ <sqlMap resource=""/> ºÎºÐÀ» Ãß°¡ÇØ Áà¾ßÇؼ­
<sqlMap resource=""/> ºÎºÐÀ» ÇϳªÀÇ ÆÄÀÏ·Î µû·Î »©¼­ °¢°¢ 4°³ÀÇ SqlMapConfig.xml¿¡¼­ ÀÎŬ·çµå ÇÏ°í ½Í°Åµç¿ä
Ȥ½Ã ÀÌ·± ¼³Á¤ÀÌ °¡´ÉÇÑÁö °í¼ö´ÔµéÀÇ ´äº¯À» ºÎŹ µå¸³´Ï´Ù.
°¨»çÇÕ´Ï´Ù.

 
ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.


QnA
Á¦¸ñPage 4187/5680
2015-12   1483315   ¹é¸Þ°¡
2014-05   4946654   Á¤ÀºÁØ1
2019-10   4910   ºý½Ã´Ù
2013-12   7057   õ»óõÇÏ
2021-01   2102   µ¹Ç³°¨ÀÚ
2013-12   7525   ¹Ú
2015-04   6295   ºó°æÀ±
2018-09   3331   ¹Î»çÀå
2018-09   4137   ÀÌÁöÆ÷Åä
2014-01   4591   ¼ÛÇö¿ì
2015-05   4191   ³ªºñz
2011-09   5637   ¿À¼º±â
2015-05   4251   warship
2016-07   6848   Landa
2021-02   6175   ¹ÙºÎÆÃÀÌ
2019-12   3002   °­Çѱ¸
05-25   1787   Åë½Å¹öÇÊ
2021-03   3699   HP¼­¹ö
2011-10   6046   ¼ø¯
2014-02   5087   Âî´Ï¶Ñ´Ï¾Æ¹ü
2018-10   3944   ±è°Ç¿ì
2022-10   1238   ³×¾²Æ®