A SqlMapClientFactoryBean can be configured to read an
SqlMapConfig.xml file from the classpath using code like this.
Resource resource = new ClasspathResource("SqlMapConfig.xml");
SqlMapClientFactoryBean smcFactory = new SqlMapClientFactoryBean();
smcFactory.setConfigurationLocation(resource);
I can use Spring to create the factory with XML like this.
<bean id="smcFactory"
class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
<property name="configLocation" value="/WEB-INF/SqlMapConfig.xml"/>
...
</bean>
However, this doesn't read SqlMapConfig.xml from the classpath.
Is there a way I can specify that the file should be read from the
classpath?