Giter Site home page Giter Site logo

cf-sample_postgresql1's Introduction

cf-sample_postgresql1

sample for spring boot application using mysql on local environment and cloudfoundry appservice

프로젝트 구성

  • Java / JDK1.8 / Maven
  • SpringBoot 1.3.8
  • Spring WebMVC / Freemarker Template

기본동작

  • 설정된 datasource 의 postgresql 에 대해서 아래의 쿼리결과문을 화면에 출력
  • SHOW ALL

로컬실행

  • java -jar .\target\cf-sample_postgresql1-1.0.0-SNAPSHOT.jar
  • http://localhost:8080
  • resources/application-default.properties 에 설정된 datasource 가 작동

CloudFoundry deploy

  • cf push
  • CloudFoundry에 의해서 spring profile 이 cloud 로 기본 지정됨에 따라, resources/application-cloud.properties 의 config 가 로드됨.
  • datasource 는 binding 된 postgresql appservice 가 있을 경우, 별도의 설정없이 binding 된 postgresql 에 대해서 auto-configuration 됨.

cf-sample_postgresql1's People

Contributors

optimique avatar

Watchers

James Cloos avatar  avatar  avatar  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.