AopTest

package phz.springframework.service.impl;

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

public class AopTest {
    public static  void testHelloworld() {
        ApplicationContext  context = new ClassPathXmlApplicationContext("helloWorld.xml");
        
        IHelloWorldService  hws = context.getBean("helloWorldService", IHelloWorldService.class);
        
        hws.sayHello();
    }
    
    public static void main(String[] args) {
        testHelloworld();
    }

}

posted @ 2017-07-21 15:59  alan-alan  阅读(109)  评论(0编辑  收藏  举报