Use of spring beans

Today, I found that the use of spring beans has always been wrong. This is the right way! Author: DayDayUp Source: blog csdn. net/songzehao/article/details/103365494 Spring bean s are singleton by default. In some cases, singleton is unsafe for concurrency. Take Controller as an example. The root of the problem is that we may define me ...

Posted by FMB on Tue, 11 Jan 2022 03:58:34 +0100

Spring source code analysis the fifth bullet - what other effects does God level spring have?

From the initial simple handwritten article to the current source code analysis article, the whole spring MVC has been completed. We can see that various callbacks, such as AOP and MVC, are processed through callbacks. This article will take a look at what other practical uses spring has besides being used as a framework. First, let's take a l ...

Posted by heltr on Tue, 11 Jan 2022 03:50:03 +0100

Are you still returning ApiResult? ✋ duck: No, let's look at the best practices for API error handling ✔️

Share Java NET, Javascript, efficiency, software engineering, programming language and other technical knowledge.This article GitHub TechShare Included, no advertising, Just For Fun.Why did you write this article?I believe many Java developers have used objects like ApiResult to wrap Api return types in projects, which is better than not wrappi ...

Posted by Koobi on Tue, 11 Jan 2022 03:47:15 +0100

SSM construction notes

SSM construction notes 1. The components of SSM spring + spring mvc + mybatis 2. The tutorial uses Java 8, idea and Maven 3. Start the tutorial: ​ 1. Use idea to create Maven project, note!!! You must select your configured Alibaba cloud maven, or the creation will fail ​ 2. If you see business success in the console, it is regarded as a s ...

Posted by GreenCore on Mon, 10 Jan 2022 22:57:34 +0100

In depth analysis of Mysql transactions and Spring transactions

In depth analysis of Mysql transactions and Spring transactions I saw the last blog shared a year ago. I didn't share it for a long time. I feel a little less. So now I set a goal to share at least two technology blogs every month from August. I've been precipitated for too long. I forget why I had to look at the source code and why I had to d ...

Posted by cringe on Mon, 10 Jan 2022 20:53:40 +0100

The most complete introductory SpringCloud tutorial ever, taking you deep from scratch ♂ Learning - Hystrix Components: Service Degradation and Dashboard Flow Monitoring

SpringCloud (10) - Hystrix Components: Service Degradation and Dashboard Flow Monitoring service degradation Service downgrade means that when server pressure increases sharply, some services and pages are not handled strategically according to actual business conditions and traffic, or handled in a simple way, thereby releasing server resour ...

Posted by deathrider on Mon, 10 Jan 2022 18:32:17 +0100

Analysis of token acquisition process of Spring Security Oauth2

preface This paper mainly studies the token acquisition process of spring security oauth2. There are five ways to obtain tokens, of which the authorization mode is the most complex. Therefore, this paper studies the token acquisition based on the authorization mode. Without much nonsense, let's go to the core source code flow chart first! Tok ...

Posted by mashnote on Mon, 10 Jan 2022 15:45:00 +0100

There should be no more detailed tutorial on RabbitMQ!

@[toc] since August, many RabbitMQ tutorials have been serialized intermittently. Recently, I took time to sort them out. There may be a video tutorial in the future. Please look forward to it. 1. Common message oriented middleware large PK When it comes to message oriented middleware, it is estimated that everyone can talk about ActiveMQ, Ra ...

Posted by kaisellgren on Mon, 10 Jan 2022 09:19:15 +0100

spring source code refresh Part 2

spring source code refresh Part 2Hello, I'm a classmate of programmer TianThe previous article gave an overall interpretation of the spring core startup method refresh, but only in general. Next, a systematic article will be published to deeply interpret the source code of each method.For the first article, see Method overview of spring source ...

Posted by Crimpage on Mon, 10 Jan 2022 06:20:02 +0100

Learning Notes - springboot

Introduction to SpringBoot Significance spring integrates multiple frameworks and requires a lot of configuration files. To simplify configuration, the springboot framework has been introduced. Advantage Embedded web server Auto starter dependencies, simplify dependency references - no version issues Automatically configure spring - y ...

Posted by aliasneo86 on Sun, 09 Jan 2022 18:37:29 +0100