Skip to content

Commit

Permalink
移除过时的MybatisSqlSessionFactoryBean#typeEnumsPackage
Browse files Browse the repository at this point in the history
  • Loading branch information
miemieYaho committed Jan 23, 2025
1 parent 033fdc9 commit 658dfcb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,6 @@ public class MybatisSqlSessionFactoryBean implements FactoryBean<SqlSessionFacto

private ObjectWrapperFactory objectWrapperFactory;

/**
* 不再需要这个配置,放心删除
*
* @deprecated 2022-03-07
*/
@Setter
@Deprecated
private String typeEnumsPackage;

@Setter
private GlobalConfig globalConfig;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ public List<AbstractMethod> getMethodList(org.apache.ibatis.session.Configuratio
}
});
sqlSessionFactory.setGlobalConfig(globalConfig);
sqlSessionFactory.setTypeEnumsPackage("com.baomidou.mybatisplus.test.h2.enums");
return sqlSessionFactory.getObject();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public SqlSessionFactory sqlSessionFactory(DataSource dataSource) throws Excepti
sqlSessionFactory.setDataSource(dataSource);
sqlSessionFactory.setTypeAliasesPackage("com.baomidou.mybatisplus.test.h2.entity.persistent");
sqlSessionFactory.setConfigLocation(new ClassPathResource("mybatis-config-object-factory.xml"));
sqlSessionFactory.setTypeEnumsPackage("com.baomidou.mybatisplus.test.h2.enums");
return sqlSessionFactory.getObject();
}

Expand Down

0 comments on commit 658dfcb

Please sign in to comment.