스프링 어플리케이션을 시작하기위한 주석 기반 메소드가 있는지 궁금합니다.스프링 응용 프로그램 컨텍스트를 가져 오는 주석 기반 방법이 있습니까?
즉 교환이 아래 일 : 통계 기반 방법으로
public static void main(String[] args) {
ApplicationContext ctx = new ClassPathXmlApplicationContext("spring.xml");
User user = (User)ctx.getBean("user");
user.createUser();
}
을 빈에 다음을 Autowiring은 컨텍스트를 얻고 위해?