spring与ibatis配置问题
小水晶 2009-05-22 05:13:20 spring配置文件中与ibatis相关部分如下:
<bean id="sqlMap" class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
<property name="configLocation">
<value>sqlMapConfig.xml</value>
</property>
</bean>
运行时发现系统去eclipse的目录下找sqlMapConfig.xml,而不在src文件夹下找
我试了绝对路径<value>D:\\Projects\\Web\\CombineBase\\src\\sqlMapConfig.xml</value>
可以找到。
也试过<value>classpath: sqlMapConfig.xml</value>
还是找不到。
要命的就是他在eclipse目录下找,如果new File的话我到是知道用getResource来找文件,可spring注入时我就不知道如何制定目录了,请高手指教