Spring4 Scheduling - Application
2015. 5. 19. 13:54ㆍJAVA/Spring(eGovFrame)
이제 마지막으로 자바를 구동하는 Application 파일입니다.
package com.intercast.schedule.stater;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import com.intercast.config.AppConfig;
public class Application {
@SuppressWarnings("resource")
public static void main(String[] args) {
// TODO Auto-generated method stub
new AnnotationConfigApplicationContext(AppConfig.class);
}
}
AnnotationConfigApplicationContext 을 이용하여 Spring 설정파일을 등록하고 실행하면 됩니다.
실행 : java -jar 자르파일명
'JAVA > Spring(eGovFrame)' 카테고리의 다른 글
[ERROR] Ambiguous mapping found. (0) | 2015.08.26 |
---|---|
@PropertySource를 이용하여 Property 등록 (0) | 2015.05.19 |
Spring4 Scheduling - Demon (0) | 2015.05.19 |
Spring4 Scheduling - Spring 설정 (0) | 2015.05.19 |
Spring4 Scheduling - 환경설정 (0) | 2015.05.19 |