package com;
public class User {
private String name;
private Integer age;
private String country;
public User(String name, Integer age, String country) {
super();
this.name = name;
this.age = age;
this.country = country;
}
public String toString() {
return name + " is " + age + " years old, living in " + country;
}
}
package com;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class Main {
public static void main(String[] args) {
ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
User user = (Us