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..
프로젝트 생성 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 클래스를 생성하여 다..
- Total
- Today
- Yesterday
- jQuery
- java
- mybatis
- maven
- Kotlin
- ls
- Profile
- 합정
- Tomcat
- resttemplate
- grant
- vrapper
- properties
- 도커
- Spring
- docker
- 톰캣
- oracle
- boot
- Database
- Shell
- Access
- 맛집
- vi
- vim
- Linux
- IntelliJ
- Eclipse
- 코틀린
- Build
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |