package com.maxbox.test;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * Created by guohui on 2019/4/2.
 *
 * @Configuration标注在类上，相当于把该类作为spring的xml配置文件中的<beans>，作用为：配置spring容器(应用上下文)
 */
@Configuration
@ComponentScan(basePackages  = "com.maxbox.test")
public class TestConfiguration {

    public TestConfiguration() {
        System.out.println("TestConfiguration 容器启动初始化。。。。。");
    }

//    @Bean
////    @Scope(value = "singleton")
////    @Scope(value = "prototype")
//    public Test test() {
//        System.out.println("test1()");
//        return new Test();
//    }
}
