|
@@ -23,6 +23,7 @@ public class MybatisXmlConfig {
|
|
|
sqlSessionFactory.setDataSource(dataSource);
|
|
|
sqlSessionFactory.setTypeAliasesPackage("com.baomidou.mybatisplus.test.h2.entity.persistent");
|
|
|
sqlSessionFactory.setConfigLocation(new ClassPathResource("mybatis-config.xml"));
|
|
|
+ sqlSessionFactory.setTypeEnumsPackage("com.baomidou.mybatisplus.test.h2.entity.enums");
|
|
|
return sqlSessionFactory.getObject();
|
|
|
}
|
|
|
|