Spring cloud Alibaba: introduction to nacos configuration center

Spring cloud Alibaba: introduction to nacos configuration center 1, Introduction to configuration center 1. Introduction Nacos provides key/value storage for storing configuration and other metadata, and provides server-side and client-side support for externalized configuration in distributed systems. Using Spring Cloud Alibaba Nacos Config ...

Posted by Raider on Sun, 24 Oct 2021 20:00:04 -0700

Singleton design pattern

1, Application scenario of singleton mode Singleton Pattern refers to ensuring that a class has absolutely only one instance in any case and providing a global access point. The Singleton Pattern is a creation pattern. Singleton mode is also widely used in real life. For example, national president, company CEO, Department Manager, etc. In J2E ...

Posted by picos on Sun, 24 Oct 2021 10:23:28 -0700

RabbitMQ notes: small test demo about prefetch count

About rabbitmq prefetch count 1-1: cause I've always had a vague impression of prefetch count. I only know that instead of the original broker polling for consumer s, I can pull down n items at a time, but when I send message s one by one through the interface, I still poll, so I have this verification blog. 1-2: experimental code Configura ...

Posted by kornlord283 on Sun, 24 Oct 2021 06:20:25 -0700

Definition and use of Java array

catalogue 1 basic usage of array 1.1 what is an array 1.2 creating arrays   1.3 use of arrays   2 array as parameter of method 2.1 basic usage 2.2 understanding of references   2.3 understanding 2.4 understand JVM memory area division 3 array as the return value of the method   4 array exercises 4.1 array to st ...

Posted by colby.anderson on Sun, 24 Oct 2021 06:07:37 -0700

Golang basic syntax

Slice slice Like an array, a slice represents a continuous collection of multiple elements of the same type, but the slice itself does not store any elements, but only a reference to an existing array.   The slice structure includes address, length and capacity. Address: the address of the slice generally refers to the memory address po ...

Posted by Das Capitolin on Sun, 24 Oct 2021 05:40:52 -0700

[ ☕ Java] graphic explanation of classic recursive special topic (explain the classic Hanoi Tower problem in detail)

⭐ Recursively find the factorial of N Idea: This problem is mainly to find the recursive formula. The recursive formula of factorial is still very easy to find, which is obvious The recursive formula is n × (n-1)! The termination condition is n==1 Illustration: Code implementation: public class Recursive solution ...

Posted by adnanhb on Sun, 24 Oct 2021 02:45:37 -0700

Spring: continue to create singleton beans, expose them in advance, inject attributes and initialize beans

review In the previous article, we analyzed how to create a regular bean. We returned to the doCreateBean method in our AbstractAutowireCapableBeanFactory. Now we have generated the beanWrapper //First, it depends on whether a singleton is allowed, whether circular dependency is allowed, and whether the bean is being created //To determ ...

Posted by psr540 on Sun, 24 Oct 2021 01:14:36 -0700

Go language Bible - Chapter 2 program structure

Chapter 2 program structure Go language, like other languages, a large program is composed of many program components. Variables hold values, and various operations form expressions. The basic types are aggregated into more complex data types such as structures and arrays. Then, for and if are used to organize and control the execution flow of ...

Posted by idotcom on Sat, 23 Oct 2021 07:27:40 -0700

Delay tasks from entry to mastery

1. Background In daily development, delayed task is an unavoidable topic. In order to achieve the purpose of delay, there will be different solutions in different scenarios. The awareness of the advantages and disadvantages of each scheme determines the effectiveness of architecture decision-making. In this article, taking the e-commerce ...

Posted by mhodge87 on Sat, 23 Oct 2021 03:40:30 -0700

Principle analysis of Spring core components

This article was not originally created by the blogger. When the blogger learned the underlying principles of Spring, he felt that this article was very profitable. He read it several times and had different experiences each time, so he wanted to record it through the blog. If there is infringement, it shall be deleted. The core of Spring ...

Posted by kippy on Sat, 23 Oct 2021 03:32:08 -0700