简体   繁体   中英

Why getting "java.lang.ClassNotFoundException: com.unboundid.ldap.sdk.LDAPException" in SpringBoot

Why getting java.lang.ClassNotFoundException: com.unboundid.ldap.sdk.LDAPException in SpringBoot even added unboundid-ldapsdk maven dependency in pom.xml

<!-- https://mvnrepository.com/artifact/com.unboundid/unboundid-ldapsdk -->
        <dependency>
            <groupId>com.unboundid</groupId>
            <artifactId>unboundid-ldapsdk</artifactId>
            <version>4.0.10</version>
            <scope>test</scope>
        </dependency>

Can anyone please help me on this?

Ensure to update the dependency scope from test to provided as per your requirement:

...
<scope>test</scope>
...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM