好的,下面是一个 Spring Boot 集成 LDAP 并支持 SSL 的示例:
首先,需要在 pom.xml 文件中添加以下依赖项:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-ldap</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>