类 PropertiesUserDetailsServiceFactoryBean

java.lang.Object
spring.turbo.module.security.user.PropertiesUserDetailsServiceFactoryBean
所有已实现的接口:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.FactoryBean<PropertiesUserDetailsService>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ResourceLoaderAware

public class PropertiesUserDetailsServiceFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<PropertiesUserDetailsService>, org.springframework.context.ResourceLoaderAware, org.springframework.beans.factory.InitializingBean
UserDetailsService 配置工具。这个类从 properties 文件中加载数据。

格式如下:

 root={bcrypt}$2a$10$zs3L/xHDTjxZw6KO/n/q1e4WV27Lh8o/NzBTytwSK14xY5NGrAkwm,enabled,ROLE_USER,ROLE_ADMIN
 
从以下版本开始:
3.3.1
作者:
应卓
另请参阅:
  • 构造器详细资料

    • PropertiesUserDetailsServiceFactoryBean

      public PropertiesUserDetailsServiceFactoryBean()
      默认构造方法
    • PropertiesUserDetailsServiceFactoryBean

      public PropertiesUserDetailsServiceFactoryBean(String location)
      构造方法
      参数:
      location - properties 文件位置
      另请参阅:
      • ResourceLoader
      • ResourceLoaderAware
  • 方法详细资料

    • getObject

      public PropertiesUserDetailsService getObject()
      指定者:
      getObject 在接口中 org.springframework.beans.factory.FactoryBean<PropertiesUserDetailsService>
    • getObjectType

      public Class<?> getObjectType()
      指定者:
      getObjectType 在接口中 org.springframework.beans.factory.FactoryBean<PropertiesUserDetailsService>
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      指定者:
      afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBean
      抛出:
      Exception
    • setResourceLoader

      public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
      指定者:
      setResourceLoader 在接口中 org.springframework.context.ResourceLoaderAware
    • setLocation

      public void setLocation(String location)