example 썸네일형 리스트형 스프링 부트(Spring boot)로 scheduling 개발하기 2016/09/07 - [개발/JAVA] - 스프링 부트(Spring boot)로 개발하기 위에서 기본적인 부트 환경이 세팅 되었으니 간단한 스케줄링 프로그램을 만들어보도록 한다.매초마다 로깅을 하거나 배치처럼 작동할 수 있는 예제를 작성해본다. 스케줄링 설정Application에 @EnableScheduling어노테이션을 달아준다. package net.donnert.spring.boot; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.scheduling.annotation.EnableSc.. 더보기 스프링 부트(Spring boot)로 개발하기 프로젝트 생성 new-project-Maven Project를 생성한다. groupId와 artifactId를 적고 프로젝트 생성을 하면 이미지처럼 나오게 된다. (그냥 아무 프로젝트 만들어서 우클릭-configure-convert to maven project로 해도 된다) Spring boot 라이브러리 추가 pom.xml을 열어서 dependencies와 동일 레벨로 parent를 추가한다. org.springframework.boot spring-boot-starter-parent 1.4.0.RELEASE dependencies 하위 항목으로 다음을 추가한다. org.springframework.boot spring-boot-starter 메인 소스 작성 Application 클래스를 생성하여 다.. 더보기 이전 1 다음