Getting Started with SpringCloud: Sleuth and Zipkin Distributed Link Tracking

The theoretical basis of Distributed Service Tracking in the industry today comes mainly from Google's paper "Dapper, a Large-Scale Distributed Systems Tracing Infrastructure". The most widely used open source implementation is Zipkin of Twitter. To achieve platform-independent, vendor-independent distributed service tracing, CNCF rel ...

Posted by valentin on Mon, 04 May 2020 00:28:23 -0700

SpringMvc initialization entry

In web Engineering, servlet can map to an http request path, and each servlet has its own life cycle. It uses init function to initialize and service function to provide services. Spring MVC makes use of these characteristics of servlet, and ingeniously integrates the initialization of container into the initialization ...

Posted by knight47 on Sun, 03 May 2020 16:40:46 -0700

After using knife4j, I finally gave up swagger UI

introduce knife4j is an enhanced solution for generating Api documents for Java MVC framework integration Swagger, formerly Swagger bootstrap UI, named kni4j in the hope that it can be as small, light and powerful as a dagger! The predecessor of knife4j is swagger bootstrap Ui. In order to adapt to the development of microservice architecture ...

Posted by oliverw92 on Sun, 03 May 2020 12:35:14 -0700

Using Mongodb to implement punch in and sign in system

Using excel file to import data and integrating mongodb to implement punch in system Environmental parameters Development tools: IDEA Basic environment: Maven+JDK8 Main technologies: SpringBoot, Mongodb Spring boot version: 2.2.6   The implementation steps are as follows: 1. Add dependency <dependency> <groupId>o ...

Posted by shinephp on Sun, 03 May 2020 07:56:41 -0700

The use of method handle in Java 7

Before JDK6, we used java reflection to implement dynamic method calls. Most frameworks use more reflection, such as mybatis, spring, etc. In JDK7, java.lang.invoke.MethodHandle (method handle) is added, which is called "modern reflection". In fact, reflection and java.lang.invoke.MethodHandle are both indirect ways to call methods, b ...

Posted by MikeA on Sun, 03 May 2020 06:05:52 -0700

Design pattern series -- single pattern

Definition Ensure that there is only one instance of a class in any case, such as in a running container, privatize the constructor, and provide a global access point. Implementation mode 1. Hungry Han style public class HungrySingleton { private static final HungrySingleton INSTANCE = new HungrySingleton(); private HungrySingleton() { } ...

Posted by meomike2000 on Sun, 03 May 2020 05:44:37 -0700

A standard ajax

A standard ajax Reader's words: after summarizing the past work, I found that I have made a lot of progress. In order to thank the fans for their support, I will strive to build a boutique blog, change the habit of making comments for myself. Again, I hope you can criticize and correct me. If you have solved your problem, remember to pay a ...

Posted by SoberDude on Sat, 02 May 2020 23:35:41 -0700

36. Spring boot configures Cors to solve cross domain requests

CORS (cross origin resource sharing) "cross domain resource sharing" is a W3C standard. It allows browsers to send Ajax requests to cross domain servers, breaking the resource limit that Ajax can only access the site. CORS is used in many places. JS payment of wechat payment is to send cross domain requests to wechat servers through ...

Posted by insane on Sat, 02 May 2020 19:32:13 -0700

java interface calls memcached

1. Before connecting to the memcache server, set up the memcache server in advance, remember the ip and port number of the created server, and use the ip and port number to connect using java code. 2. Start using java links 2.1 introduce the jar files memcached-2.0.1.jar and memcached-1.1.jar into the project 2.2 con ...

Posted by ineedhelp on Sat, 02 May 2020 12:42:36 -0700

Two ways for nginx to turn on ssl and redirect http to https

1 Introduction Nginx is a very powerful and popular high-performance Web server. This article explains how nginx integrates https and redirects http to https. https related articles are as follows: (1)Spring boot integration https is so simple (2)Key knowledge and key tools of HTTPS Keytool and keystore Explorer (3)Two ways for spring boot to r ...

Posted by damienwc on Sat, 02 May 2020 10:20:58 -0700