Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以使用我的 IDE 添加两个描述(属性),但在 Java 中我只能添加一个描述。如何添加第二个?
我正在使用 JDK LDAP 库。
经过一些尝试,我自己能够做到
Attributes attrs = new BasicAttributes(true); BasicAttribute b = new BasicAttribute("description"); b.add("a"); b.add("b"); attrs.put(b);