Spring Notes - AOP Face Oriented Programming

Basic concepts: AOP: Aspect Oriented Programming, facet-oriented programming A programming method that dynamically cuts a piece of code into a specified location for a specified method to run while the program is running Pre-notification (@Before): Executes before the target method runs Post-notification (@After): executes after the target met ...

Added by pchadwick83 on Thu, 19 Mar 2020 09:30:41 +0200

Architect's internal approach, well-known but not known iterator pattern in detail

Iterator Pattern, also known as Cursor Pattern, provides a way to sequentially access a collection or container object element without exposing its internal representation.The iterator pattern provides a traversal behavior for different containers, regardless of the composition of the elements within them.The essence of the iterator pattern is ...

Added by warmwind on Thu, 19 Mar 2020 09:20:43 +0200

How Springboot starts scanning packages

Reference Link 1Reference Link 2 The code referenced is Springboot 2.1.1 By default, the scan range is the package and its subdirectories of the main class xxApplication, which you can see in the later implementation. From SpringApplication.run(xxxApplication.class, args) in the main class; click all the way into the imple ...

Added by rndilger on Tue, 17 Mar 2020 18:45:09 +0200

Wechat custom components

Official website documents 1.Component constructor Component({ behaviors: [], properties: { // This property is to accept the data field passed down by the parent component myProperty: { type: String, value: '' }, name: String }, data: { obj:[{"id":"1","name":"Junior one"}] ...

Added by craigbabe on Tue, 17 Mar 2020 17:42:55 +0200

The principle and usage of Java loop queue

Before the formal circular queue learning, let's take a look at the problem of deleting the queue head element in the sequential queue: (1) Let's set an array with capacity=8 and size=5(a,b,c,d,e). The left side is the team head and the right side is the team tail. (2) After an element is out of the team, it needs to move forward one bit as a ...

Added by Dogrox on Tue, 17 Mar 2020 11:24:04 +0200

GC thinking caused by a thread pool bug!

Author: empty https://segmentfault.com/a/1190000021109130 Problem description A few days ago, I was helping my colleagues to troubleshoot the occasional thread pool errors on the production line. The logic was very simple. The thread pool performed an asynchronous task with results. However, there have been occasional errors recently: java.ut ...

Added by poscribes on Tue, 17 Mar 2020 11:18:15 +0200

Summary of spring learning AOP

1, AOP introduction 1. Basic concept of AOP     AOP is the abbreviation of Aspect Oriented Programming, which means: it is a technology to realize the unified maintenance of program functions through precompile mode and dynamic agent during operation. AOP is the continuation of OOP (obj ...

Added by sklein99 on Tue, 17 Mar 2020 07:30:51 +0200

Architects must fully master the responsibility chain mode of the thorough way of kicking the ball

In our daily life, the responsibility chain mode is quite common. We usually work to handle some affairs, often all departments cooperate to complete a project task. Each department has its own responsibilities, so many times when a part of the work has been completed, it will be handed over to the next department, until all the departments hav ...

Added by PHPfolife on Mon, 16 Mar 2020 12:22:36 +0200

Nginx Common Classic Configuration | Reverse Proxy, HTTPS Redirection, Port Forwarding

Secondary directory mapping At present, there are more scenarios for front-end and back-end project separation, usually one port for front-end and one port for back-end. If the front end is https://example.com/index.html, the interface called is https://example.com:4433 Such a deployment can be cumbersome for small projects, but you can also ...

Added by Akenatehm on Sun, 15 Mar 2020 19:49:40 +0200

Visibility of volatile, prevention of instruction reordering, and solutions that do not guarantee atomicity

Preface The use of volatile is closely related to thread safety. Its main function is to make variables visible among multiple threads, and to prevent instruction rearrangement. For example, there is a variable a=0 in the main memory, and thread 1 sets a=10. When thread 2 operates a again, it operates on the basis of a=10. Otherwise, it will a ...

Added by Crystal Dragon on Sun, 15 Mar 2020 05:35:22 +0200