This is an example project to show the behaviour of the discovery starter.
You an starter this application with the following spring profile:
integration
to use theCoffeeNetAppService
with an implementation that calls the discovery servicedevelopment
to use theCoffeeNetAppService
with a mock implementation
Please start the provided eureka (service discovery server) docker containers with
./docker-compose up
Now on http://localhost:8761 the service discovery server is available and after you start this application, this application will register itself
You can see all registered applications on
http://localhost:8090 or
http://localhost:8090/filtered
On /filtered
you see only applications that can be accessed with
the role SPECIAL
, that is why there is no application listed.
Because the Discovery Sever
have the role COFFEENET-ADMIN
.
Just start this application and see the mocked applications "registered" at the "service discovery server"
http://localhost:8090 or
http://localhost:8090/filtered
In development mode the mock is not so intelligent to filter the applications, so you always see all of them.