Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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_ci

docker 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