Code Monkey home page Code Monkey logo

spring-cloud-config's Introduction

spring-cloud-config

Gerenciando Configurações com Spring Cloud Config

Pré requisito

  • Maven 3
  • Java 8
  • Docker

Preparando ambiente

Gerando artefatos

cd spring-cloud-config
mvn clean package

Construindo imagem Docker do Spring Cloud Config Server

cd server
mvn dockerfile:build

Executando

Iniciando Config Server pelo Docker

cd server
docker run -it -p 8888:8888 spring-cloud-config/server


s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8888 (http)
b.c.e.config.CloudConfigAppConfig        : Started CloudConfigAppConfig in 5.479 seconds (JVM running for 6.201)

Iniciando aplicação cliente do Config Server

cd app
mvn spring-boot:run


c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at: http://localhost:8888
c.c.c.ConfigServicePropertySourceLocator : Located environment: name=app, profiles=[default], label=null, version=3586952764950d4eb09bea10d45ed8165ff02416, state=null
b.c.PropertySourceBootstrapConfiguration : Located property source: CompositePropertySource [name='configService', propertySources=[MapPropertySource {name='configClient'}, MapPropertySource {name='https://github.com/emmanuelneri-blog/spring-cloud-config-configuration/app-default.properties'}, MapPropertySource {name='https://github.com/emmanuelneri-blog/spring-cloud-config-configuration/application-default.properties'}, MapPropertySource {name='https://github.com/emmanuelneri-blog/spring-cloud-config-configuration/app.properties'}, MapPropertySource {name='https://github.com/emmanuelneri-blog/spring-cloud-config-configuration/application.properties'}]]
s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8090 (http)
br.com.emmanuelneri.app.AppConfig        : Started AppConfig in 7.493 seconds (JVM running for 11.064)

Obs: Para acessar as URLs do Config Server basta utilizar usuário e senha config.

spring-cloud-config's People

Contributors

emmanuelneri avatar

Watchers

 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.