Circular dependency in Spring

preface Circular dependency in Spring has always been a very important topic in Spring. On the one hand, it is because the source code has done a lot of processing to solve circular dependency. On the other hand, if you ask a higher-level question in Spring during the interview, circular dependency must not escape. If you answer well, then thi ...

Posted by porto88 on Thu, 23 Dec 2021 20:22:33 +0100

[spring 39 / 43] - spring Environment & amp; Properties: PropertySource, environment, Profile

Quote the original text: https://www.cmsblogs.com/article/1391375600689745920 [Spring 39/43] - Environment & Properties of Spring: PropertySource, environment, Profile text Spring. profiles. I believe you are familiar with active and @ Profile, The main function is to switch the parameter configuration in different environments (developme ...

Posted by ericorx on Thu, 23 Dec 2021 02:20:33 +0100

File upload and download case based on SpringBoot and Mybatis

File upload and download case based on SpringBoot and Mybatis This case is based on the actual combat of the [bad programmer] enterprise file upload and download project based on SpringBoot and Mybatis. BiliBili link: https://www.bilibili.com/video/BV1764y1u7gn?p=1 Effect achieved 1. Users need to log in first. We use shiro authentication to ...

Posted by k994519 on Thu, 23 Dec 2021 02:17:59 +0100

java log framework JUL, JCL, Slf4j, Log4j, Log4j2, Logback

Why does the program need to log It is impossible for us to manually monitor the system 24 hours in real time, so how to check if there are abnormal errors in the program? And how do we know what the system does when it runs? At this time, the concept of log appears. The emergence of log plays a vital role in system monitoring and exception an ...

Posted by vinny199 on Wed, 22 Dec 2021 21:33:15 +0100

How is the automatic configuration of SpringBoot implemented

catalogue 1, What is SpringBoot? 2, What are the advantages of SpringBoot? 3, Principle analysis of automatic configuration 1, What is SpringBoot? SpringBoot is a sub project under the open source organization of Spring. It is a one-stop solution for Spring components. It simplifies the difficulty of using Spring, saves a lot of cumbers ...

Posted by shuka79 on Wed, 22 Dec 2021 19:49:33 +0100

Detailed explanation of distributed lock learning

1. Distributed lock 1.1 what is distributed lock When we develop a stand-alone application involving concurrent synchronization, we often use synchronized or ReentrantLock to solve the problem of code synchronization between multiple threads. However, when our application works in a distributed cluster, we need a more advanced locking mechani ...

Posted by onyx on Wed, 22 Dec 2021 17:15:14 +0100

SpringBoot auto configuration principle

SpringBoot auto configuration principle What is auto configuration? When learning about SSM development projects, we need to introduce the dependencies of spring, spring MVC and mybatis, and use configuration files or java config to configure components such as configuration view parser. However, springboot provides us with a convenient devel ...

Posted by Alffallen on Wed, 22 Dec 2021 10:43:24 +0100

Filter, interceptor, listener

Filter: manage all web resources for the web server, mainly preprocess some user requests, and then preprocess them after the server responds and return them to the user, such as jsp, static pictures, etc. purpose: 1. Implement URL level access control, 2. Filter sensitive words, 3. Hide some information with *. Interceptor: basically, it is ...

Posted by itsjames on Wed, 22 Dec 2021 06:41:21 +0100

Spring Boot realizes multi data source integration Mybatis version

preface This blog only talks about how to realize multi data source configuration in Spring Boot project from zero to one, not about the source code (later, Spring Boot automatic configuration and other source codes). This blog is based on spring boot version 2.5 1. background Multiple data sources need to be connected in a project. We nee ...

Posted by Tyche on Wed, 22 Dec 2021 03:41:34 +0100

How does java borrow a third party to quickly develop wechat payment function (v3)

Data required for wechat payment Official account / merchant number The official account number of WeChat is selected, service number or enterprise number is selected. Subscription number does not support WeChat payment function.Wechat merchant account application (to be reviewed) Above can get WeChat's official account number appid a ...

Posted by sriphp on Wed, 22 Dec 2021 03:37:53 +0100