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

com.seven.cow.beans.spring.boot.starter.SpringBeansAutoConfiguration Maven / Gradle / Ivy

There is a newer version: 0.2.4
Show newest version
package com.seven.cow.beans.spring.boot.starter;

import com.seven.cow.beans.spring.boot.starter.layered.BusinessContentBootstrapper;
import com.seven.cow.beans.spring.boot.starter.layered.BusinessControllerInitialize;
import com.seven.cow.beans.spring.boot.starter.properties.BeansProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(BeansProperties.class)
public class SpringBeansAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean
    public BusinessContentBootstrapper businessContentBootstrapper() {
        return new BusinessContentBootstrapper();
    }

    @Bean
    @ConditionalOnMissingBean
    public BusinessControllerInitialize businessControllerInitialize() {
        return new BusinessControllerInitialize();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy