develog

applicationContext.xml, sqlMapConfig, configLocation (classpath or file) 본문

Dev/Java

applicationContext.xml, sqlMapConfig, configLocation (classpath or file)

냐옴 2013. 12. 9. 15:58

<!-- sqlMapClient, configLocation, classpath -->

<bean id="sqlMapClient" class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">

    <property name="configLocation" value="classpath:sqlMap-config.xml" />

    <property name="dataSource" ref="dataSource" />

</bean>


<!-- sqlMapClient, configLocation, file -->

<bean id="sqlMapClient" class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">

    <property name="configLocation" value="file:WebContent/WEB-INF/sqlMap-config.xml" />

    <property name="dataSource" ref="dataSource" />

</bean>

'Dev > Java' 카테고리의 다른 글

Quartz test  (0) 2013.12.11
jndi test 2  (0) 2013.12.11
@ContextConfiguration  (0) 2013.12.09
tail  (0) 2013.12.05
[Java] log4sql, jdbc driverClass  (0) 2013.12.03
Comments