Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/doguedogue/spring-batch
spring-batch-maven-mysql
https://github.com/doguedogue/spring-batch
Last synced: 11 days ago
JSON representation
spring-batch-maven-mysql
- Host: GitHub
- URL: https://github.com/doguedogue/spring-batch
- Owner: doguedogue
- Created: 2023-06-10T09:33:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-15T05:18:57.000Z (over 1 year ago)
- Last Synced: 2024-10-26T22:11:14.537Z (about 2 months ago)
- Language: Java
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Batch ☕🚀
- Java >= 8
- Maven
- IntelliJ IDEA Community
- MySQL 8 (Docker)
### Docker - MySQL
```
docker pull mysql:8.0.12
docker run -d -p 3306:3306 --name mysqldb -e MYSQL_ROOT_PASSWORD=secret mysql:8.0.12 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_cidocker exec -it mysqldb mysql -uroot -p
docker container ls -a
container rm -f XXX
```
### SQL
```
CREATE SCHEMA `batch_db` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci;use batch_db;
SELECT
count(*) records,
min(created_date) start,
max(created_date) end,
timediff(max(created_date), min(created_date)) elapsed_time
FROM customers_info
;select * from customers_info;
delete from customers_info where 1=1;
```
### API - Start Job
```
//POST
http://localhost:9191/jobs/importCustomers
```Thanks to © @basahota