Spring Batch Admin Webapps 실행 법


-Eclipse 3.7

-Maven


1. Web PJT 생성 (maven default web)

2. Dependency Add (이거 외 spring batch 랑 spring도 같이 넣어줌)

		<dependency>

			<groupId>org.springframework.batch</groupId>

			<artifactId>spring-batch-admin-manager</artifactId>

			<version>1.2.0.BUILD-SNAPSHOT</version>

		</dependency>

3. classpath에 batch-default.xml 생성

batch.jdbc.driver=com.mysql.jdbc.Driver
batch.jdbc.url=jdbc:mysql://host:3306/name
batch.jdbc.user=${user}
batch.jdbc.password=${password}
batch.schema.script=classpath:/org/springframework/batch/core/schema-mysql.sql
batch.drop.script=classpath:/org/springframework/batch/core/schema-drop-mysql.sql
batch.business.schema.script=classpath:/delete-table.sql
batch.data.source.init=true


- classpath에 /delete-table.sql 도 역시 생성


4. packing 혹은 eclise에서 server로 기동 


신고
Posted by Stewie


티스토리 툴바