GithubHelp home page GithubHelp logo

zenfery / spring-boot-multidatasource Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sbcoba/spring-boot-multidatasource

0.0 1.0 0.0 43 KB

Spring Boot에서 Multi DataSource 쉽게 사용할 수 있도록 지원 하는 프로젝트

Shell 9.72% Batchfile 6.89% Java 83.39%

spring-boot-multidatasource's Introduction

Spring Boot Multi Datasource

버전

  • Spring Boot 1.3.0.RELEASE 기준

소개

  • Spring Boot 에서 DataSource 한개 이상 사용시 쉽게 설정할 수 있도록 지원
  • 간단히 Dependency 추가와 어노테이션 만으로도 쉽게 사용 가능
  • @DataSource 어노테이션을 통한 DataSource Routing
  • 커스텀 DataSource를 사용하여 이용 가능

실행조건

  • JDK 1.6 이상 환경 ( JDK 1.7 이상 추천 )
  • Maven 설치
  • Spring Boot 개발 환경

소스 내려받기

$ git clone https://github.com/sbcoba/spring-boot-multidatasource.git

샘플 실행

$ cd spring-boot-multidatasource
$ mvn clean install
# 샘플 실행
$ cd spring-boot-multidatasource-sample
$ mvn -pl spring-boot-multidatasource-sample-default spring-boot:run

Maven Dependency 설정

<dependency>
  <groupId>org.sbcoba.springboot</groupId>
  <artifactId>spring-boot-multidatasource</artifactId>
  <version>0.3.0.BUILD-SNAPSHOT</version>
</dependency>

예제설명

  • spring-boot-multidatasource-sample-default
    • 다양한 데이타 소스를 변경하며 테스트 가능
    • H2 DB를 이용하여 쉽게 확인 가능

spring-boot-multidatasource's People

Contributors

sbcoba avatar

Watchers

Pengfei Cheng 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.