Commit 1e61727d authored by neo's avatar neo

[dev] config mapper location

parent 19312c5d
......@@ -84,7 +84,7 @@ public class DataSourcePoolService extends AbstractRoutingDataSource {
SqlSessionFactoryBean bean = new SqlSessionFactoryBean();
bean.setDataSource(dynamicDataSource);
bean.setMapperLocations(new PathMatchingResourcePatternResolver()
.getResources("classpath*:pwc/taxtech/atms/vat/dao/*Mapper.xml"));
.getResources("classpath*:pwc/taxtech/atms/vat/dao/**/*Mapper.xml"));
return bean.getObject();
}
......
......@@ -40,7 +40,7 @@
<property name="configLocation" value="classpath:sqlMapConfig.xml" />
<property name="mapperLocations">
<array>
<value>classpath:pwc/taxtech/atms/**/*Mapper.xml</value>
<value>classpath*:pwc/taxtech/atms/**/*Mapper.xml</value>
</array>
</property>
</bean>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment