草庐IT

SaltSource

全部标签

spring - 如何在 Java Config 中注册 SaltSource(无 xml)

我正在设置一个不使用xml(没有web.xml和spring.xml)的新Web应用程序。除了不知道如何注册SaltSource之外,我几乎可以完成所有工作。我需要将以下内容替换为Java等效项。到目前为止,我在Java中有这个。protectedvoidconfigure(AuthenticationManagerBuilderauth)throwsException{ReflectionSaltSourcerss=newReflectionSaltSource();rss.setUserPropertyToUse("salt");auth.userDetailsService(au