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

com.github.trang.autoconfigure.context.SpringContextAutoConfiguration Maven / Gradle / Ivy

There is a newer version: 1.1.5
Show newest version
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();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy