最后更新于6年前
这有帮助吗?
Spring Data包含了支持LDAP的仓库。Spring Data LDAP的详细情况,请查看他们的。
你也可以像其它Spring Bean一样,注入一个自动配置的LdapTemplate实例。
LdapTemplate
@Component public class MyBean { private final LdapTemplate template; @Autowired public MyBean(LdapTemplate template) { this.template = template; } // ... }