springboot.ossclient.SpringBootAutoConfiguration Maven / Gradle / Ivy
The newest version!
/*
* @(#)SpringBootAutoConfiguration.java 2021-10-27
*
* Copyright (c) 2021. All Rights Reserved.
*
*/
package springboot.ossclient;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import springboot.ossclient.processor.OssClientComponentsProcessor;
/**
* SpringBootAutoConfiguration
*
* @author Gerald Chen
* @version $Id: SpringBootAutoConfiguration.java 2021-10-27 11:36:58 Exp $
*/
@Configuration
@ComponentScan("com.github.javaclub.ossclient")
public class SpringBootAutoConfiguration {
@Bean
@ConditionalOnMissingBean(OssClientComponentsProcessor.class)
public OssClientComponentsProcessor ossClientComponentsProcessor() {
return new OssClientComponentsProcessor();
}
}