package com.sptg.common.core.cfgbeans;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * title: ConfigBean
 * package: com.sptg.common.core.cfgbeans
 * description: 基本配置类
 *      EnableAsync :   开启异步注解
 *                  
 *            
 */
@Configuration
@EnableAsync
public class ConfigBean {

    /**
     * 参数绑定工具
     *      使用 @ConfigurationProperties(prefix = "") 初始化参数
     * @return PropertySourcesPlaceholderConfigurer
     */
    @Bean
    public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer(){
        return new PropertySourcesPlaceholderConfigurer();
    }


}
