### Question:
BeanWithConfiguration { public BeanWithConfiguration() { System.out.println("Bean with configuration inst...."); } BeanWithConfiguration(); @Bean A a(); @Bean B b();  }### Answer:
@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()); }