package com.soft.jdk;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Jdk_Test {
    public static void main(String[] args) {
        String xmlPath="com/soft/factorybean/appllicationContext.xml";
        ApplicationContext applicationContext =new ClassPathXmlApplicationContext(xmlPath);
        //从string容器中获得内容
        UserDao userDao=(UserDao) applicationContext.getBean("userDaoProxy");
        userDao.addUser();
        userDao.deleteUser();
    }
}