no message
parent
985aac35a3
commit
8ebc4a979f
@ -1,12 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:jdbc="http://www.springframework.org/schema/jdbc"
|
||||
xmlns:jee="http://www.springframework.org/schema/jee"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
|
||||
http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.0.xsd
|
||||
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee.xsd">
|
||||
<beans:beans xmlns="http://www.springframework.org/schema/mvc" xmlns:p="http://www.springframework.org/schema/p" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:beans="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context"
|
||||
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
|
||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
||||
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
|
||||
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
|
||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
|
||||
|
||||
<beans:bean id="dataSourceOrigin" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
|
||||
<beans:property name="driverClassName" value="com.tmax.tibero.jdbc.TbDriver"></beans:property>
|
||||
<beans:property name="url" value="jdbc:tibero:thin:@211.119.124.118:8629:gtpadevdb"></beans:property>
|
||||
<beans:property name="username" value="dbuser_cfs"></beans:property>
|
||||
<beans:property name="password" value="dbuser_cfs8"></beans:property>
|
||||
</beans:bean>
|
||||
|
||||
<beans:bean id="dataSource" class="net.sf.log4jdbc.Log4jdbcProxyDataSource">
|
||||
<beans:constructor-arg ref="dataSourceOrigin" />
|
||||
</beans:bean>
|
||||
|
||||
<!-- JNDI 설정 -->
|
||||
<jee:jndi-lookup id="dataSource" jndi-name="brsmm" expected-type="javax.sql.DataSource"></jee:jndi-lookup>
|
||||
|
||||
</beans>
|
||||
|
||||
</beans:beans>
|
||||
|
||||
@ -1,25 +1,35 @@
|
||||
<?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">
|
||||
<beans:beans xmlns="http://www.springframework.org/schema/mvc" xmlns:p="http://www.springframework.org/schema/p" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:beans="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context"
|
||||
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
|
||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
||||
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
|
||||
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
|
||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
|
||||
|
||||
<!-- SqlSession setup for MyBatis Database Layer -->
|
||||
<bean id="sqlSession" class="org.mybatis.spring.SqlSessionFactoryBean">
|
||||
<property name="dataSource" ref="dataSource" />
|
||||
<!--
|
||||
<property name="configLocation" value="classpath:/egovframework/sqlmap/example/sql-mapper-config.xml" />
|
||||
<property name="mapperLocations" value="classpath:/egovframework/sqlmap/example/mappers/*.xml" />
|
||||
-->
|
||||
|
||||
<property name="configLocation" value="classpath:/egovframework/sqlmap/gtpabrs/sql-mapper-config.xml" />
|
||||
<property name="mapperLocations" value="classpath:/egovframework/sqlmap/gtpabrs/mappers/*.xml" />
|
||||
</bean>
|
||||
|
||||
|
||||
|
||||
<beans:bean id="sqlSession" class="org.mybatis.spring.SqlSessionFactoryBean">
|
||||
<beans:property name="dataSource" ref="dataSource"></beans:property>
|
||||
<beans:property name="configLocation" value="classpath:/egovframework/sqlmap/gtpabrs/sql-mapper-config.xml"></beans:property>
|
||||
<beans:property name="mapperLocations" value="classpath:/egovframework/sqlmap/gtpabrs/mappers/*.xml" />
|
||||
</beans:bean>
|
||||
<!--
|
||||
<beans:bean id="sqlSession" class="org.mybatis.spring.SqlSessionTemplate">
|
||||
<beans:constructor-arg index="0" ref="sqlSessionFactory" />
|
||||
</beans:bean>
|
||||
-->
|
||||
|
||||
<!-- MapperConfigurer setup for MyBatis Database Layer with @Mapper("deptMapper") in DeptMapper Interface -->
|
||||
<bean class="egovframework.rte.psl.dataaccess.mapper.MapperConfigurer">
|
||||
<!--
|
||||
<property name="basePackage" value="egovframework.example.sample.service.impl" />
|
||||
-->
|
||||
<property name="basePackage" value="gtpa.brs.openapi.service.impl" />
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
<beans:bean class="egovframework.rte.psl.dataaccess.mapper.MapperConfigurer">
|
||||
<beans:property name="basePackage" value="gtpa.brs.openapi.service.impl" />
|
||||
</beans:bean>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</beans:beans>
|
||||
Binary file not shown.
Loading…
Reference in New Issue