/hello-spring-cloud

Primary LanguageJavaMIT LicenseMIT

Hello Spring Cloud

本代码库已集成:

  • Spring Boot
  • Spring Cloud
  • Spring Cloud Eureka
  • Spring Cloud OpenFeign
  • Spring Cloud Zuul
  • Spring Cloud Gateway
  • Spring Cloud Config
  • Spring Cloud Stream (kafka)
  • Spring Cloud Bus

启动Eureka集群

mvn clean package
java -jar .\hello-spring-cloud-eureka-1.0-SNAPSHOT.jar --spring.profiles.active=replica1
java -jar .\hello-spring-cloud-eureka-1.0-SNAPSHOT.jar --spring.profiles.active=replica2

安装kafka

 # Get the docker image

docker pull apache/kafka:3.7.0

# Start the kafka docker container

docker run -p 9092:9092 apache/kafka:3.7.0

# Once the Kafka server has successfully launched, you will have a basic Kafka environment running and ready to use.