parent
3f22cb29fa
commit
4445211a01
@ -0,0 +1,11 @@
|
||||
package com.ssm.di.annotation;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
|
||||
public class TestAnnotation {
|
||||
public static void main(String[] args) {
|
||||
ApplicationContext ac = new ClassPathXmlApplicationContext("bean-di-annotation.xml");
|
||||
Course course = ac.getBean("course", Course.class);
|
||||
course.printInfo();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Loading…
Reference in new issue