com.github.trang.autoconfigure.context.SpringContextAutoConfiguration Maven / Gradle / Ivy
package com.github.trang.autoconfigure.context;
import org.springframework.boot.autoconfigure.AutoConfigureOrder;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* Spring 自定义工具的自动配置
*
* @author trang
*/
@Configuration
@AutoConfigureOrder
public class SpringContextAutoConfiguration {
@Bean
@ConditionalOnMissingBean
public SpringContextHolder springContextHolder() {
return new SpringContextHolder();
}
}