com.didiglobal.logi.security.config.AutoConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of logi-security-spring-boot-starter Show documentation
Show all versions of logi-security-spring-boot-starter Show documentation
logi-security 提供项目大多都需要的一些基础功能(用户、角色、权限、登录、注册、操作记录)
package com.didiglobal.logi.security.config;
import com.didiglobal.logi.security.properties.LogiSecurityProper;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
/**
* @author cjm
*/
@Configuration("logiSecurityAutoConfiguration")
@EnableConfigurationProperties(LogiSecurityProper.class)
@AutoConfigureAfter({DataSourceAutoConfiguration.class})
@ComponentScan(basePackages = "com.didiglobal.logi.security")
public class AutoConfiguration {
private final LogiSecurityProper proper;
public AutoConfiguration(LogiSecurityProper proper) {
this.proper = proper;
}
public LogiSecurityProper getProper() {
return proper;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy