Wednesday, July 1, 2020

Master Microservices with Spring boot and Spring cloud (udemy) note


1. logging.level.org.springframework=debug
check auto configuration report, dispatch servlet, basicErrorController, HttpMessageConvert
2.
Implement validations for RESTful service (size, past..., message="")
3.
swagger-ui.html
v2/api-docs
4. acuator
management.endpoint.web.exposure.include=*
recheck http://localhost:8080/acuator
hal browser
5. spring cloud config
@EnableConfigServer
spring.cloud.config.server.git.uri=file:///in28mins...
localhost:8888/limits-service/default
6. Spring cloud config server
application.properties:
       spring.application.name=limits-service
limits-service-dev.properties
limits-service-qa.properties
localhost:8888/limits-service/qa
7. application
bootstrap.properties:
  spring.application.name=limits-service
  spring.cloud.config.uri=http://localhost:8888/
  spring.profiles.active=dev
8. Use feign to simplifying the REST client
@EnableFeignClients
  Use ribbon for client side load balancing



No comments:

Post a Comment