package com.jaf.examples.spring.ch8.beannameautoproxy;

import com.jaf.examples.spring.ch8.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by walle on 2017/4/29.
 */
public class BeanNameAutoProxyMain {

    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("classpath:ch8/beannameautoproxy/applicationContext.xml");
        UserService userService = context.getBean(UserService.class);
        userService.findUser();
        System.out.println(userService.getClass());
    }

}
