applicationContext.xml 里:
class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
value="sqlMapConfig.xml" />
sqlMapConfig.xml 跟 applicationContext.xml 是同一个目录下
我都放在src目录下,但是:tomcat 启动时:
ontext initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/sqlMapConfig.xml]
提示 找不到该文件了
但是单位测试的时候是没问题的