Spring Boot Handy Code Notes from infybuzz tutorial 1. Spring Cloud - It is providing projects to quickly create micro services - Official website, https://spring.io/projects/spring-cloud 2. We learning following Spring cloud projects - Spring cloud web client (this will help in communicating between 2-different micro services without rest template in a programmatic way , for more details click here) - Spring cloud open feign (this will help in communicating between 2-different micro services without rest template in declarative way , for more details click here) - Spring cloud netfilx Eureka (this is service discover and registry s...
.git/Github handy code Points to Remember :- 1. git is a versioning tool to keep track of changes and collaboration with team. 2. We install git in our local machine to connect with github on internet and push our code for versioning to local and remote locations. 3. On github we will create repositories, branches, masters etc for versioning. 4. In this handy code, we will be learning git and it’s command and structure. 5. We do have GUI and CUI of git, in the handy-code we will be learning about git CUI 6. Download and install git.exe file from website - www.git-for-windows.github.io 7. To verify git installation execute “git version” in command prompt, it will give you the installed version. After installing git tool, we have to set configuration for reference, git config --gl...
Interview Preparation Spring Boot 1. management.endpoints.web.exposure.include=httptrace When we work with microservices or web services in general, it's quite useful to know how our users interact with our services. This can be achieved by tracing all the requests that hit our services and collect this information to analyze it later. There some systems available out there that can help us with this and can be easily integrated with Spring like Zipkin . However, Spring Boot Actuator has this functionality built-in and can be used through its httpTrace endpoint which traces all HTTP requests. In this tutorial, we'll show how to use it and how to customize it to fit better our requirements. @Repository public class CustomTraceRepository implements HttpTraceRepository { “From above for tracing we can use zipkin server and spring boot actuator” 2. ...
Comments
Post a Comment