请解释在 JNDI 中使用 ldapcontext
和 dircontext
之间的区别。
我发现有 JNDI 示例同时使用 ldapcontext
和 dircontext
。我应该使用哪个?
最佳答案
来自关于 ldapcontext 的 JavaDocs
This interface represents a context in which you can perform operations with LDAPv3-style controls and perform LDAPv3-style extended operations. For applications that do not require such controls or extended operations, the more generic javax.naming.directory.DirContext should be used instead.
关于java - JNDI 中的 LdapContext 与 dircontext,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15514143/