Environment composition
First of all, Environment is an interface provided by Spring 3.1. It is an abstraction of the environment of the currently running application, let's take a look at its composition.
First look at the uml class diagram:
Environment consists of two parts
1)profiles
The Chinese literal translation of profile means "ov ...
Posted by kingleo on Thu, 19 May 2022 09:39:09 +0300
preface
Template, as the name suggests, is a fixed and standardized thing.
Template method pattern is a behavior design pattern. It defines an algorithm framework in superclass, allowing subclasses to rewrite specific steps of the algorithm without modifying the structure.
Scene problem
Suppose we are masters of a beverage shop, we need at leas ...
Posted by thekidscareya on Wed, 18 May 2022 14:59:35 +0300
Error problem display
This problem bothered me all day. I don't know why. Fortunately, there are big guys on the Internet. The reference blog is at the bottom.
Problem solving
When dubbo is used to transfer MultipartFile files, an invoke method error will be reported because dubbo cannot transfer this object across the system. Hessian can be ...
Posted by willpower on Wed, 18 May 2022 11:38:29 +0300
Note: This article is a little long, so I suggest you download the source code to learn. (please collect if necessary! Please state the source of reprint, thank you!)
Code download: https://gitee.com/hong99/spring/issues/I1N1DF
background
Following the above< spring cache - distributed cache>;
About jmeter configuration
jmeter is an ...
Posted by jahwobbler on Wed, 18 May 2022 08:43:34 +0300
Spring IOC -- configuring beans based on annotations
1. Basic use
1. Description
● basic introduction
Beans are configured based on annotations, mainly components in project development, such as Controller, Service, and Dao
● the forms of Component annotation are:
@Component indicates that the current annotation identifies a component @ ...
Posted by echion on Tue, 17 May 2022 23:32:07 +0300
In addition to caching, Redis can also do many things: distributed locking, flow limiting, idempotency of request processing interface... Too much, too much ~Today, I want to talk with my friends about how to use Redis to deal with interface current limitation. This is also the knowledge point involved in the recent TienChin project. I'll bring ...
Posted by harley1387 on Tue, 17 May 2022 16:48:56 +0300
1 background
The service timer application will often trigger the alarm email of fuse abnormality in the middle of the night
Find and summarize the following table according to the class prompted by the email
number
Error reporting method
Application to which the interface belongs
Scheduled task class
A
VipTradeReportFeignService#getShopTr ...
Posted by allex01 on Mon, 16 May 2022 01:32:34 +0300
@EnableDubbo
@SpringBootApplication
@MapperScan(basePackages = "com.xiaoze.consumer.dao")
public class DubboConsumerApplication {
public static void main(String[] args) {
SpringApplication.run(DubboConsumerApplication.class, args);
}
}
This is a very common way to scan the Dao layer path and register the interface class of ...
Posted by doberman on Sun, 15 May 2022 05:48:09 +0300
catalog:
🥪 1, Instantiated Bean
🍬 1.1 environmental preparation
🍬 1.2 instantiation of construction method (common)
🍕 Step 1: prepare the class to be created
🍕 Step 2: configure the class to the Spring container
🍕 Step 3: write the running program
🍕 Step 4: provide constructor test in class
🍕 Step 5: change the constructor to private te ...
Posted by timc37 on Sun, 15 May 2022 01:17:37 +0300