类 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
- 作者:
- 应卓
- 另请参阅:
-
字段概要
从接口继承的字段 org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
构造器概要
构造器构造器说明默认构造方法构造方法 -
方法概要
修饰符和类型方法说明voidClass<?>voidsetLocation(String location) voidsetResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.springframework.beans.factory.FactoryBean
isSingleton
-
构造器详细资料
-
PropertiesUserDetailsServiceFactoryBean
public PropertiesUserDetailsServiceFactoryBean()默认构造方法 -
PropertiesUserDetailsServiceFactoryBean
构造方法- 参数:
location- properties 文件位置- 另请参阅:
-
ResourceLoaderResourceLoaderAware
-
-
方法详细资料
-
getObject
- 指定者:
getObject在接口中org.springframework.beans.factory.FactoryBean<PropertiesUserDetailsService>
-
getObjectType
- 指定者:
getObjectType在接口中org.springframework.beans.factory.FactoryBean<PropertiesUserDetailsService>
-
afterPropertiesSet
- 指定者:
afterPropertiesSet在接口中org.springframework.beans.factory.InitializingBean- 抛出:
Exception
-
setResourceLoader
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) - 指定者:
setResourceLoader在接口中org.springframework.context.ResourceLoaderAware
-
setLocation
-