Conflicts:
	ruoyi/src/main/java/com/ruoyi/framework/config/MyBatisConfig.java
feature/model
疯狂的狮子li 5 years ago
commit 87c0074fab

@ -13,6 +13,7 @@
//import org.springframework.context.annotation.Bean; //import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration; //import org.springframework.context.annotation.Configuration;
//import org.springframework.core.env.Environment; //import org.springframework.core.env.Environment;
//import org.springframework.core.io.DefaultResourceLoader;
//import org.springframework.core.io.Resource; //import org.springframework.core.io.Resource;
//import org.springframework.core.io.support.PathMatchingResourcePatternResolver; //import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
//import org.springframework.core.io.support.ResourcePatternResolver; //import org.springframework.core.io.support.ResourcePatternResolver;
@ -93,6 +94,7 @@
// { // {
// String typeAliasesPackage = env.getProperty("mybatis.typeAliasesPackage"); // String typeAliasesPackage = env.getProperty("mybatis.typeAliasesPackage");
// String mapperLocations = env.getProperty("mybatis.mapperLocations"); // String mapperLocations = env.getProperty("mybatis.mapperLocations");
// String configLocation = env.getProperty("mybatis.configLocation");
// typeAliasesPackage = setTypeAliasesPackage(typeAliasesPackage); // typeAliasesPackage = setTypeAliasesPackage(typeAliasesPackage);
// VFS.addImplClass(SpringBootVFS.class); // VFS.addImplClass(SpringBootVFS.class);
// //
@ -100,6 +102,7 @@
// sessionFactory.setDataSource(dataSource); // sessionFactory.setDataSource(dataSource);
// sessionFactory.setTypeAliasesPackage(typeAliasesPackage); // sessionFactory.setTypeAliasesPackage(typeAliasesPackage);
// sessionFactory.setMapperLocations(new PathMatchingResourcePatternResolver().getResources(mapperLocations)); // sessionFactory.setMapperLocations(new PathMatchingResourcePatternResolver().getResources(mapperLocations));
// sessionFactory.setConfigLocation(new DefaultResourceLoader().getResource(configLocation));
// return sessionFactory.getObject(); // return sessionFactory.getObject();
// } // }
//} //}
Loading…
Cancel
Save