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

com.myb.RepeatAutoConfiguration Maven / Gradle / Ivy

package com.myb;

import com.myb.aop.LogAspectjProcess;
import com.myb.aop.ResubmitAspectjProcess;
import com.myb.config.LogProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @Author meiyubin
 * @Date 2023/11/23
 * @DESC
 */
@Configuration
@ComponentScan("com.myb")
@ConditionalOnProperty(prefix = "resubmitCheck",name = "enable",havingValue = "true",matchIfMissing = false)
public class RepeatAutoConfiguration {
    @Bean
    public ResubmitAspectjProcess myAspect() {
        return new ResubmitAspectjProcess();
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy