@Test public void testBeanWithConfiguration() throws Exception { ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring-BeanAndConfiguration.xml"); A a = context.getBean(A.class); System.out.println(a.getClass().getName()); }
public BeanWithConfiguration() { System.out.println("Bean with configuration inst...."); }
BeanWithConfiguration { public BeanWithConfiguration() { System.out.println("Bean with configuration inst...."); } }
BeanWithConfiguration { public BeanWithConfiguration() { System.out.println("Bean with configuration inst...."); } BeanWithConfiguration(); }
BeanWithConfiguration { public BeanWithConfiguration() { System.out.println("Bean with configuration inst...."); } BeanWithConfiguration(); @Bean A a(); @Bean B b(); }
BeanWithConfiguration { public BeanWithConfiguration() { System.out.println("Bean with configuration inst...."); } BeanWithConfiguration(); @Bean A a(); @Bean B b();  }