e33ca725f557041d993ca4f0c962ec4f19fac734
Spring Cloud Consul
Preview of Spring Cloud Consul implementation
Running the sample
- Install consul
- Run
./run_consul.shfound in the root of this project - verify consul is running by visiting http://localhost:8500
- run
mvn --settings .settings.xml packagethis will bring in the required spring cloud maven repositories and build - run
java -jar spring-cloud-consul-sample/target/spring-cloud-consul-sample-1.0.0.BUILD-SNAPSHOT.jar - visit http://localhost:8080, verify that
{"serviceId":"<yourhost>:8080","host":"<yourhost>","port":8080}results - run
java -jar spring-cloud-consul-sample/target/spring-cloud-consul-sample-1.0.0.BUILD-SNAPSHOT.jar --server.port=8081 - visit http://localhost:8080 again, verify that
{"serviceId":"<yourhost>:8081","host":"<yourhost>","port":8081}eventually shows up in the results in a round robbin fashion (may take a minute or so).
Description
Languages
Java
64.4%
CSS
23.3%
HTML
9.7%
Batchfile
2%
Shell
0.6%