Coder Social home page Coder Social logo

springbatchexercisesingledb's Introduction

docker_gradle_springboot_springbatch_flyway

docker+그레이들+스프링부트+스프링배치+flyway조합으로 간단한 샘플 프로젝트 작성
이 프로젝트는 복수의 DB가 아닌 SingleDB 일 경우를 전제로 함
DB Unit Test 샘플코드도 포함되어 있음

도커 컨테이너 기동

docker-compose up -d
  • dbname : springjpadb
  • port : 3309

터미널에서 Gradle flyway마이그레이션

./gradlew flywayClean
or
./gradlew flywayMigrate
or
./gradlew flywayInfo

빌드

./gradlew build

실행

java -Dspring.profiles.active=local -jar ./build/libs/batchsample-0.0.1-SNAPSHOT.jar --JOB_NAME=BATCH1

IntelliJ에서 실행

실행환경 구성 Active Profile 에서 local 을 적고, 실행인자값으로 --JOB_NAME=BATCH1 을 해줄것.

버전 정보

  • Java : 17
  • SpringBoot : 2.6.2
  • Mysql : 8.0
  • Flyway : 8.0.0

springbatchexercisesingledb's People

Contributors

hasune avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.