Skip to content

Commit e14c4f2

Browse files
fix readme
1 parent 9322939 commit e14c4f2

File tree

2 files changed

+11
-26
lines changed

2 files changed

+11
-26
lines changed

README.ja.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Spring Boot 3 と Spring Batch 5 を使用した、すぐに使えるバッチ
1717
* Docker Desktop
1818
* Gradle 8.5+(gradlewを使用する場合は不要)
1919

20-
2120
> 💡 JDK 21が必要ですが、Gradleのツールチェーン機能により、ローカルにインストールされていなくても自動的にダウンロードされます。
2221
2322
## 🚀 クイックスタート
@@ -27,28 +26,21 @@ Spring Boot 3 と Spring Batch 5 を使用した、すぐに使えるバッチ
2726
# リポジトリのクローン
2827
git clone https://github.com/kinto-technologies/SpringBoot3BatchStarter.git
2928

30-
# スケルトンバッチのビルドと実行
31-
cd skeletonBatch
32-
../gradlew
33-
java -jar build/libs/skeletonBatch-*.jar
29+
# スケルトンバッチの実行
30+
./gradlew :skeletonBatch:bootRun
3431
```
3532

3633
### 2️⃣ DBとCSVのバッチを試す
3734

3835
```bash
39-
# MySQLコンテナの起動
40-
cd ..
36+
# MySQL 起動
4137
docker compose up -d
4238

43-
# ビルドと実行
44-
cd dbAndCsvBatch
45-
../gradlew
46-
47-
# DB→CSV出力の実行
48-
java -jar build/libs/dbAndCsvBatch-*.jar --spring.batch.job.name=DB_TO_CSV --spring.profiles.active=local
39+
# DB to CSV 実行
40+
./gradlew :dbAndCsvBatch:bootRun --args="--spring.batch.job.name=DB_TO_CSV --spring.profiles.active=local"
4941

50-
# CSV→DB登録の実行
51-
java -jar build/libs/dbAndCsvBatch-*.jar --spring.batch.job.name=CSV_TO_DB --spring.profiles.active=local
42+
# CSV to DB 実行
43+
./gradlew :dbAndCsvBatch:bootRun --args="--spring.batch.job.name=CSV_TO_DB --spring.profiles.active=local"
5244
```
5345

5446
---

README.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,27 +46,20 @@ Both components are built with industry best practices and utilize the latest Sp
4646
# Clone repository
4747
git clone https://github.com/kinto-technologies/SpringBoot3BatchStarter.git
4848

49-
# Build and run skeleton batch
50-
cd skeletonBatch
51-
../gradlew
52-
java -jar build/libs/skeletonBatch-*.jar
49+
# Build and Run
50+
./gradlew :skeletonBatch:bootRun
5351
```
5452

5553
### 2️⃣ Try DB and CSV Batch
5654
```bash
5755
# Start MySQL container
58-
cd ..
5956
docker compose up -d
6057

61-
# Build and run
62-
cd dbAndCsvBatch
63-
../gradlew
64-
6558
# Run DB to CSV export
66-
java -jar build/libs/dbAndCsvBatch-*.jar --spring.batch.job.name=DB_TO_CSV --spring.profiles.active=local
59+
./gradlew :dbAndCsvBatch:bootRun --args="--spring.batch.job.name=DB_TO_CSV --spring.profiles.active=local"
6760

6861
# Run CSV to DB import
69-
java -jar build/libs/dbAndCsvBatch-*.jar --spring.batch.job.name=CSV_TO_DB --spring.profiles.active=local
62+
./gradlew :dbAndCsvBatch:bootRun --args="--spring.batch.job.name=CSV_TO_DB --spring.profiles.active=local"
7063
```
7164

7265
## 📁 Project Structure

0 commit comments

Comments
 (0)