MybatisPlusConfig配置文件修改

product
chuang 2 years ago
parent e58e377774
commit 3524526cbd

@ -218,9 +218,10 @@ public class MybatisPlusConfig {
public Resource[] resolveMapperLocations() {
ResourcePatternResolver resourceResolver = new PathMatchingResourcePatternResolver();
List<String> mapperLocations = new ArrayList<>();
mapperLocations.add("classpath:mapper/*/*.xml");
// mapperLocations.add("classpath:mapper/*/*.xml");
mapperLocations.add("classpath*:mapper/**/*.xml");
mapperLocations.add("classpath:mapper/*/*/*.xml");
mapperLocations.add("classpath*:mapper/**/**/*.xml");
// mapperLocations.add("classpath:mapper/*/*/*.xml");
//modified by 巴卫
// mapperLocations.add("classpath*:mapper/**/*.xml");
List<Resource> resources = new ArrayList<Resource>();

Loading…
Cancel
Save