Package demo.annotation

Source Code of demo.annotation.AnnotationDemo

package demo.annotation;

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

import core.Bank;

public class AnnotationDemo {

  public static void main(String[] args) {
    ApplicationContext context = new ClassPathXmlApplicationContext("config.xml", AnnotationDemo.class);
    Bank bank = context.getBean(Bank.class);
    bank.credit("abc", 100);
    bank.debit("abc", 99.99);
  }

}
TOP

Related Classes of demo.annotation.AnnotationDemo

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.