All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.houbbbbb.sso.config.SSOAutoCNF Maven / Gradle / Ivy

package com.github.houbbbbb.sso.config;

import com.github.houbbbbb.sso.filter.SSOFilter;
import com.github.houbbbbb.sso.scheduler.SchedulerRunner;
import com.github.houbbbbb.sso.service.UserOpt;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * @author : hbw
 * @desctiption :
 * @date : 2020-05-15 10:06
 */
@Configuration
@EnableConfigurationProperties({SSOFilterCNF.class})
public class SSOAutoCNF {
    @Bean
    public SSOFilter getFilter(SSOFilterCNF ssoFilterCNF){
        return new SSOFilter(ssoFilterCNF);
    }

    @Bean
    public UserOpt getUserOpt(SSOFilterCNF ssoFilterCNF){
        return new UserOpt(ssoFilterCNF);
    }

    @Bean
    public SchedulerRunner getSchedulerRunner(SSOFilterCNF ssoFilterCNF){
        return new SchedulerRunner(ssoFilterCNF);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy