fairnet/src/main/resources/egovframework/spring/com/context-sqlMap.xml
2024-07-08 15:37:51 +09:00

75 lines
2.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd">
<!-- lob Handler -->
<bean id="lobHandler" class="org.springframework.jdbc.support.lob.DefaultLobHandler" lazy-init="true" />
<!-- SqlMap setup for iBATIS Database Layer -->
<bean id="sqlMapClient" class="egovframework.rte.psl.orm.ibatis.SqlMapClientFactoryBean">
<property name="configLocations">
<list>
<value>classpath:/egovframework/sqlmap/config/${Globals.DbType}/*.xml</value>
</list>
</property>
<property name="dataSource" ref="dataSource-${Globals.DbType}" />
<property name="lobHandler" ref="lobHandler" />
</bean>
<!-- SqlMap setup for iBATIS Database Layer -->
<bean id="egov.sqlMapClient" class="egovframework.rte.psl.orm.ibatis.SqlMapClientFactoryBean">
<property name="configLocations">
<list>
<value>classpath:/egovframework/sqlmap/config/${Globals.DbType}/*.xml</value>
</list>
</property>
<property name="dataSource" ref="dataSource-${Globals.DbType}" />
<property name="lobHandler" ref="lobHandler" />
</bean>
<bean id="oracleSqlMapClient" class="egovframework.rte.psl.orm.ibatis.SqlMapClientFactoryBean">
<property name="configLocations">
<list>
<value>classpath:/egovframework/sqlmap/config/oracle/*.xml</value>
</list>
</property>
<property name="dataSource" ref="dataSource-oracle" />
<property name="lobHandler" ref="lobHandler" />
</bean>
<!-- kcdf maria migration -->
<!-- <bean id="kcdfSqlMapClient" class="egovframework.rte.psl.orm.ibatis.SqlMapClientFactoryBean"> -->
<!-- <property name="configLocations"> -->
<!-- <list> -->
<!-- <value>classpath:/egovframework/sqlmap/config/maria/*.xml</value> -->
<!-- </list> -->
<!-- </property> -->
<!-- <property name="dataSource" ref="dataSource-kcdf" /> -->
<!-- <property name="lobHandler" ref="lobHandler" /> -->
<!-- </bean> -->
<!-- Mybatis 설정 -->
<!-- <bean id="sqlSession" class="org.mybatis.spring.SqlSessionFactoryBean">
<property name="dataSource" ref="dataSource-${Globals.DbType}" />
<property name="configLocation" value="classpath:/egovframework/spring/com/mybatis-config.xml" />
<property name="mapperLocations">
<list>
<value>classpath:/egovframework/sqlmap/mappers/*.xml</value>
</list>
</property>
</bean>
<bean class="egovframework.rte.psl.dataaccess.mapper.MapperConfigurer">
<property name="basePackage" value="kcc.kccadr.adjPgrMgr" />
</bean> -->
</beans>