MybatisPlusConfig配置文件修改!

product
巴卫 2 years ago
parent 17a49f2b53
commit eaf7e4a8fc

@ -219,8 +219,9 @@ public class MybatisPlusConfig {
ResourcePatternResolver resourceResolver = new PathMatchingResourcePatternResolver(); ResourcePatternResolver resourceResolver = new PathMatchingResourcePatternResolver();
List<String> mapperLocations = new ArrayList<>(); 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");
//modified by 巴卫
// mapperLocations.add("classpath*:mapper/**/*.xml");
List<Resource> resources = new ArrayList<Resource>(); List<Resource> resources = new ArrayList<Resource>();
for (String mapperLocation : mapperLocations) { for (String mapperLocation : mapperLocations) {
try { try {

Loading…
Cancel
Save