Learning micro service to serve consumers - Feign

In addition to restTemplate+ribbon, there is another way to call between microservices: Feign 1. Create a feign service build.gradle file buildscript { ext { springBootVersion = '2.0.4.RELEASE' } repositories { mavenCentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion ...

Added by irishdreaming on Sun, 05 Jan 2020 06:27:40 +0200

[UWP]UIElement.Clip is disabled, but it can play as well

1. Review the UIElement.Clip for WPF WPF has been around for a long time, but hardly ever actively uses its Clip property. I only remember that it is flexible enough to cut out many shapes.stay Official Documents After a review, the general usage and effect are as follows: <Image Source="sampleImages\Waterlilies.jpg" Width="200" Heigh ...

Added by Cynix on Sat, 04 Jan 2020 16:04:43 +0200

Learning service consumers of microservices -- ribbon and restTemplate

Microservices will split a single large project into several independent small services. The call between these small services uses HTTP restful. Spring cloud provides ribbon+restTemplate. Ribbon is a load balancing client. 1. First, start the Eureka server project and the Eureka client say hi project. Its port is 8792. Then change the port fr ...

Added by Uzm on Sat, 04 Jan 2020 03:01:02 +0200

Spring Boot integrates Mybatis (1)

New spring boot project, dependent <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc&l ...

Added by trexx on Fri, 03 Jan 2020 23:44:44 +0200

Built-in functions commonly used in Python 3

cmp() function describe The cmp(x,y) function compares two objects, returning -1 if x < y, 0 if x == y, and 1 if x > y. grammar cmp( x, y ) parameter x -- A numeric expression. y -- A numeric expression. Return value Returns -1 if x < y, 0 if x == y, and 1 if x > y. print "cmp(80, 100) : ", cmp(80, 100) print "cmp(180, 100) : ", c ...

Added by saami123 on Fri, 03 Jan 2020 17:12:00 +0200

DelegatingFilterProxy of spring framework

Note: the analysis version is spring framework-4.3. X, and the source code can be downloaded on Github 1. Class inheritance diagram Previous picture Figure 1 class inheritance diagram of DelegatingFilterProxy DelegatingFilterProxy just inherits GenericFilterBean directly, as follows     List-1 public class DelegatingFilterProxy extends ...

Added by Elizabeth on Fri, 03 Jan 2020 14:38:56 +0200

This article takes you to understand that the OAuth2 protocol integrates with Spring Security OAuth2!

OAuth 2.0 authorization protocol that allows third-party applications to access restricted HTTP resources, like the OAuth 2.0 authorization framework, which is commonly used when people use Github and Google accounts to log on to other systems. The following is the authorization page diagram of the Coding system using Github accounts: There a ...

Added by holiks on Fri, 03 Jan 2020 04:04:36 +0200

Springboot + redis (stand-alone)

This time, I want to share with you that redis is used in spring boot integration. Here, the jedis client of redis is used (here, redis running by docker, please refer to docker quickly builds several common third-party services ), add dependencies as follows: <dependency> <groupId>redis.clients</groupId> <artifact ...

Added by kishanprasad on Thu, 02 Jan 2020 15:07:01 +0200

Actuator + Prometheus + Grafana Build Microservice Monitoring Platform

[TOC] Preface about Actuator: Partners who know about Spring Boot monitoring capabilities should know about the Spring Boot Actuator subproject, which provides powerful monitoring capabilities for applications.Starting with Spring Boot 2.x, Actuator changed the underlying layer to Micrometer, providing stronger and more flexible monitoring ...

Added by MerlinJR on Thu, 02 Jan 2020 07:04:57 +0200

Multithreading large number of rabbitmq messages

Problem Description: after the rabbitmq message is received in the project, a series of processing is carried out first. After all processing is completed, the message is pushed to the foreground. However, in the process of processing the message, each method has the code to interact with the database, which directly causes the ...

Added by nrsh_ram on Thu, 02 Jan 2020 06:08:56 +0200