ApplicationContext ac = new ClassPathXmlApplicationContext("Aop.xml");
Math math = ac.getBean("MathIpml",Math.class);//MathIpml首字母小写
double i = math.add(9.0, 15.0);
System.out.println(i);
Math math = ac.getBean("mathIpml",Math.class);//MathIpml首字母小写
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)