LDAP无法运行?

来源:5-2 LDAP 配置和多 AuthenticationProvider 共存

慕虎7489716

2021-01-20

图片描述
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘LDAPUserRepository’ defined in com.innocence.bujiangwude.common.login.security.auth.ldap.LDAPUserRepository defined in @EnableLdapRepositories declared on LdapRepositoriesRegistrar.EnableLdapRepositoriesConfiguration: Invocation of init method failed; nested exception is org.springframework.data.mapping.PropertyReferenceException: No property pa found for type LDAPUser! Did you mean ‘id’?
5-2完全按照老师的来,却报了这个错误,为什么啊老师?

写回答

1回答

接灰的电子产品

2021-01-20

ldapuser 类对照git源码看一下

0
2
接灰的电子产品
回复
慕虎7489716
从错误信息看你的repository里面使用了没在ldapuser 类中的属性,你贴出来看看代码
2021-01-21
共2条回复

Spring Security+OAuth2 精讲,打造企业级认证与授权

一站式掌握主流安全框架与行业解决方案,从容应对各种安全难题。

1042 学习 · 316 问题

查看课程