You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
406 B
13 lines
406 B
package springIOC;
|
|
|
|
import org.springframework.context.ApplicationContext;
|
|
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
|
|
|
public class Main {
|
|
public static void main(String[] args) {
|
|
ApplicationContext context = new ClassPathXmlApplicationContext("app.xml");
|
|
// Driver d = (Driver) context.getBean("d");
|
|
Tank t = (Tank) context.getBean("t");
|
|
}
|
|
}
|