Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Example project combining Spring Boot apps with Spring Cloud Netflix (Eureka, Zuul, Feign) & cxf-spring-boot-starter

License

NotificationsYou must be signed in to change notification settings

jonashackt/cxf-spring-cloud-netflix-docker

Repository files navigation

Build StatusLicenserenovateenabled

Spring Boot & Spring Cloud compatibility:https://spring.io/projects/spring-cloud

Example project combining Spring Boot apps together with Spring Cloud Netflix & Docker

It was created as a showcase for this blog post:Scaling Spring Boot Apps on Docker Windows Containers with Ansible: A Complete Guide incl Spring Cloud Netflix and Docker Compose and is used by this Ansible repository:ansible-windows-docker-springboot

It´s roughly structured like shown in this sketch:

multiple-apps-spring-boot-cloud-netflix

Usage

As the whole example-application is Dockerized, just do adocker-compose up -d and all apps will be started for you. Run adocker ps to see what´s going on. Then enterhttp://localhost:8761/ to see all Services registering in Eureka.

The zuul-edgeservice proxies weatherservice (by retrieving routes dynamically from eureka-serviceregistry) that itself calls weatherbackend

Example:http://localhost:8080/api/weatherservice/soap

There´s a Client application inside this project too, so you can fire requests to the weather-service with that one to - and it should be clear, how to implement a consumer :) For that, just fire up theweatherclient - it should be right there after amvn clean package ran inside the root directoy.

Spring Cloud 2.x Upgrade

Renamed starters:https://github.com/spring-projects/spring-cloud/wiki/Spring-Cloud-Edgware-Release-Notes

Errors bean overriding
***************************APPLICATION FAILED TO START***************************Description:The bean 'weatherServiceClient', defined in de.jonashackt.WeatherclientTestApplication, could not be registered. A bean with that name has already been defined in class path resource [de/jonashackt/configuration/WeatherclientConfiguration.class] and overriding is disabled.

Seehttps://stackoverflow.com/questions/51367566/trouble-when-changing-spring-boot-version-from-2-0-3-release-to-2-1-0-build-snap,bean overriding (DI) isn't the default behavior anymore and you have to use:

spring.main.allow-bean-definition-overriding: true

insidesrc/test/resources/application.yml.

Links

http://projects.spring.io/spring-cloud/

http://cloud.spring.io/spring-cloud-static/Dalston.RELEASE/

https://github.com/sqshq/PiggyMetrics

https://github.com/kbastani/spring-cloud-microservice-example

About

Example project combining Spring Boot apps with Spring Cloud Netflix (Eureka, Zuul, Feign) & cxf-spring-boot-starter

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp