Eureka of Spring Cloud Netflix: service registration and discovery

Introduction to Spring cloud Spring Cloud provides developers with tools to quickly build distributed systems (such as configuration management, service discovery, circuit breaker, intelligent routing, micro agent, control bus, one-time token, global lock, leadership election, distributed session, cluster state, etc.). Developers can use Spring ...

Posted on Thu, 17 Oct 2019 03:52:25 -0700 by HGeneAnthony

Feign [replace the default feign client]

Explain: By default, feign uses the HTTP request sent by the original URLConnection of JDK, which is not used in the connection pool, but maintains a long connection for each address, that is, HTTP persistence connection. We can use Apache's HTTP client to replace the original HTTP client, and tune the service call by setting the connection po ...

Posted on Tue, 15 Oct 2019 08:09:05 -0700 by Coruba67

ActiveMQ Learning Summary - --- Native Practical Operation 03

This article will continue with the previous one as a knowledge supplement, laying a good foundation for our next study of spring integrating ActiveMQ. The main contents of this study are as follows: 1.ActiveMQ Queue Service Listening 2.ActiveMQ Topic Model   Looking back on the last ActiveMQ Learning Summary, we learned that: 1. Introdu ...

Posted on Mon, 14 Oct 2019 23:54:00 -0700 by Megalink

Mybatis Source Analysis: Environment Settings

Mybatis Environment Configuration Class Environment When initializing the Mybatis framework, we need to configure the environment element, which allows multiple elements, so that we can switch back-end storage in different environments. If you have an id attribute for the environment, the id must be unique. Otherwise, the subsequent configurat ...

Posted on Mon, 14 Oct 2019 08:48:17 -0700 by Nabster

RocketMQ Master-Slave Synchronization Source Code Analysis

Wechat Public Number "Back-end Advancement" focuses on back-end technology sharing: Java, Golang, WEB framework, distributed middleware, service governance and so on. A previous article on the difference between RocketMQ queues and Kafka partitioned replicas mentioned that RocketMQ message redundancy is mainly achieved through master- ...

Posted on Mon, 14 Oct 2019 05:11:02 -0700 by brewmiser

springboot2 properties file dynamic loading

1. A better solution is to use file monitoring to rely on commons-io2. <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.5</version> </dependency> 2. Writing listeners import java.io.File; import com.di ...

Posted on Sun, 13 Oct 2019 10:43:31 -0700 by majik92

Learning Notes - Day 17 18 (Reflection)

reflex What is Reflection Learning reflex: Reflection is the behavior of the runtime Class Class: An instance object generated by this class is used to describe a class. The class object describes the Student class. All Student objects and Student classes share the current class object Examp ...

Posted on Sat, 12 Oct 2019 11:40:56 -0700 by daveoffy

Dubbo remote call solr problem

Dubbo remote call solr problem Using Dubbo to call the solr query of the server remotely, there is a return value, but the mapping to the bean is null. Server-side local tests, return values are normally mapped to beans @Service public class ItemSearchServiceImpl implements ItemSearchService { @Autow ...

Posted on Sat, 12 Oct 2019 11:29:57 -0700 by l053r

Apache-Shiro Custom Realm Reality

Introduction to custom Realm In general, custom Realm inherits AuthorizingRealm. Inheritance of Realm: Authorizing Realm - > Authenticating Realm - > Caching Realm - > Realm. step Create a class that inherits AuthorizingRealm. Rewrite the authorization method doGetAuthorization Info. Rewrite the authentication method doGetAuthen ...

Posted on Sat, 12 Oct 2019 08:27:42 -0700 by mysqlnewjack

Start-up Analysis of MyBatis

Preface MyBatis is one of the most commonly used persistence layer frameworks at present. By analyzing its source code, we can make better use of it in our use process. This series is based on mybatis-3.4.6 for analysis.MyBatis's initial work is to parse the main configuration file, map the configuration file, and annotate information. It is t ...

Posted on Thu, 10 Oct 2019 23:15:15 -0700 by outatime88