Spring Cloud Config Distributed Configuration Center
Firstly, the registration center should be established.
file-new-module
pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http ...
Posted by stevenye on Tue, 13 Aug 2019 06:15:34 +0200
java personal payment system (springboot)
With the widespread development of mobile payment, the current situation of Alipay and WeChat's two largest payment systems has basically been formed in the market. Therefore, the major businesses, websites, platforms and so on have access to Alipay and WeChat as payment methods. However, as a develo ...
Posted by chuddyuk on Mon, 12 Aug 2019 11:48:04 +0200
Hibernate Level 2 Cache
Why do you need caching
Stretch program performance
Relational databases: databases with relationships between data and data mysql/Oracle, sqlserver
Non-relational databases: There is no relationship between data and data, key-value
1. File-based database: ehcache
2. Memory-based databas ...
Posted by Duke555 on Fri, 09 Aug 2019 11:18:43 +0200
Inheritance, Logging, Compression in Feign of Spring Cloud
The last article shared with you the basic usage of Feign, a declarative micro-service invocation component. I believe you have learned the benefits of using Feign. Feign effectively solves the problem of code template when using RestTemplate, which makes the invocation between services easier and more ...
Posted by Hillary on Mon, 05 Aug 2019 10:23:22 +0200
12. Feign Integrated Circuit Breaker Hystrix
Public number: java paradise
The first edition of RestTemplate+Ribbon Integrated Circuit Breaker Hystrix, this article to see how Feign Integrated Circuit Breaker Hystrix, Feign Integrated Circuit Breaker Hystrix is relatively simple. Feign has its own circuit breaker Hystrix by default, so you don't need to add annotations to SpringBook's boo ...
Posted by eabigelow on Sat, 03 Aug 2019 17:28:35 +0200
29. Java Foundation - Log4j Configuration and Use
I. Introduction Examples
1. Configure dependencies in maven's pom file as follows:
<!-- log4j support -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
2. Create the lo ...
Posted by dvonj on Thu, 01 Aug 2019 08:12:05 +0200
Construction of Alibaba Open Source Sentinel Current Limiting Scheme
Sentinel is a current limiting scheme framework of Ali Open Source, which has the following characteristics:
Rich application scenarios: Sentinel takes over the core scenarios of Alibaba's "Twenty-Eleven" traffic promotion in recent 10 years, such as second killing (i.e., burst traffic control within the system capacity can be tole ...
Posted by ryclem on Wed, 31 Jul 2019 16:42:44 +0200
maven's introductory notes
Installation of JDK( Baidu Disk Extraction Code: rus0 | Official website)
Configuring environment variables
CTRL+R enters sysdm.cpl and then chooses Advanced - > Environment Variables (or right-click the computer - > Properties - > Advanced System Settings - > Environment Variables)
...
Posted by bodge on Tue, 30 Jul 2019 17:27:09 +0200
logback configuration and use
brief introduction
logback is another open source log component designed by the founder of log4j. Currently, it is divided into three modules:
logback-core is the basic module of the other two modules.
Logback-classic is an improved version of log4j. In addition, logback-classic fully implements the SLF4J API, so that you can easily replace it ...
Posted by peter_anderson on Tue, 30 Jul 2019 16:08:36 +0200
[Spring cloud realizes advertising system step by step] 4. General code module design
A large system must be essential for code reuse. It can solve the following problems:
Unified Response Processing (Unified Response Object Packaging for Outside)
graph LR
HTTP-->|HttpRequest|RestController
RestController-->|HttpResponse -> JSON|HTTP
Unified exception handling (business exceptions can be collected and handled unif ...
Posted by FiveFlat on Sat, 27 Jul 2019 14:16:22 +0200