Spring LDAP 2.0.0.RELEASE 是 Spring LDAP 项目的一个重要里程碑版本,于 2016 年 12 月正式发布。该版本基于 Spring Framework 4.3+,全面支持 Java 8,并引入了多项关键改进与重构,主要包括:
- ✅完全重写的核心 API:采用函数式风格设计,提供更简洁、安全的 LDAP 操作抽象(如
LdapOperations的增强、DirContextProcessor替代ContextMapper等); - ✅响应式编程支持雏形(为后续 Spring LDAP 2.1+ 的 Reactive LDAP 奠定基础);
- ✅移除过时模块:废弃并删除
spring-ldap-tiger(因 Java 5+ 已成标配),统一构建于 Java 8+; - ✅增强的安全性与异常处理:更细粒度的
NamingException封装(如DataAccessException层次结构完善),默认启用连接池(Apache Commons Pool 2); - ✅配置现代化:原生支持 Java Config(
@EnableLdapRepositories)和 Spring Boot 自动配置(需配合spring-boot-starter-data-ldap)。
⚠️ 注意:2.0.0.RELEASE 已于 2019 年起进入EOL(End of Life),官方不再提供维护或安全更新;当前推荐使用 Spring LDAP 2.4.x(兼容 Spring Framework 5.3+/6.x)或迁移至 Spring Data LDAP(Spring Boot 3+ 推荐方案)。
<!-- Maven 依赖示例(历史版本,不建议新项目使用) --><dependency><groupId>org.springframework.ldap</groupId><artifactId>spring-ldap-core</artifactId><version>2.0.0.RELEASE</version></dependency>Spring LDAP 2.0.0.RELEASE Released
I’m pleased to announce that Spring LDAP 2.0.0.RELEASE is now available from Maven Central and Bintray. A special thanks to Mattias Arthursson for all the work he put into this release!
Refer to the What’s new in Spring LDAP 2.0 to find the full details of this release. A list of changes can be found within JIRA’s change logs. Highlights include:
Spring Data Repository and QueryDSL support is now included in Spring LDAP. Fluent LDAP query support has been added. A custom XML namespace is now provided to simplify configuration of Spring LDAP. Spring LDAP core has been updated with Java 5 features such as generics and varargs. The ODM (Object-Directory Mapping) functionality has been moved to core and there are new methods in LdapOperations/LdapTemplate that uses this automatic translation to/from ODM-annotated classes.Please consider helping us spread the word on Twitter, ask questions on Stackoverflow with the spring-ldap tag and log any issues to the Spring LDAP JIRA.
comments powered by Disqus