Playing with Java Microservices on Kubernetes and OpenShift by Nebrass Lamouchi

Playing with Java Microservices on Kubernetes and OpenShift by Nebrass Lamouchi

Author:Nebrass Lamouchi [Nebrass Lamouchi]
Language: eng
Format: epub, pdf
Publisher: leanpub.com
Published: 2018-11-24T00:00:00+00:00


Step 2: Swagger 2

Next we need to add the Swagger dependencies. We will activate the Swagger2 capabilities, by annotating the Main Class with the @EnableSwagger2 annotation.

Step 3: Application Configuration

We need a bootstrap.yml in our customer-service/src/main/resources/ folder:

customer-service/src/main/resources/bootstrap.yml spring: cloud: config: uri: http://localhost:8888 application: name: customer-service

And in the Config Server, we need to create a dedicated properties file of our customer-service. This properties file will contain the port on which the customer-service will be running on.

The content of the customer-service.yml file:

config-server/src/main/resources/configurations/customer-service.yml server: port: 9992



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.