Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package pe.edu.idat;
- import org.springframework.context.support.AbstractApplicationContext;
- import org.springframework.context.support.ClassPathXmlApplicationContext;
- public class MainApp {
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- AbstractApplicationContext context =
- new ClassPathXmlApplicationContext("Beans.xml");
- HelloWorld obj = (HelloWorld)
- context.getBean("helloworld");
- System.out.println(obj.getMessage());
- }
- }
Add Comment
Please, Sign In to add comment