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.
我们正在为客户提供配置 ldap 服务器运行时的设施。但是当我修改上下文源构造函数中使用的提供程序服务器 url 时,应用程序崩溃。有没有办法在运行时更改 ldap 服务器 url?对于 LdapAuthenticationProvider。
如果这是您更改提供程序的情况,因为其中一个可能由于某种原因关闭,您应该security:authentication-provider在您的 spring-security 配置文件中设置多个身份验证提供程序 ( )。Spring-security 将从列表顶部开始并继续尝试,直到找到一个可行的方法。这样你就可以离开这个设置并且不需要重新部署你的代码。
security:authentication-provider