SSM framework integrates Druid from simple to deep to SpringBoot taking over Druid configuration ~ learn the ideas and ideas of SpringBoot taking over

📑 Content of this article: SSM framework integrates Druid from simple to deep, and SpringBoot takes over Druid configuration 📘 Article column: Principle and project development of SpringBoot microservice 🎬 Last updated: January 25, 2022 SpringBoot quick start - this quick start is different. It teaches you the method, not the technology. It ...

Posted by medusa1414 on Wed, 26 Jan 2022 21:06:21 +0100

Record a spring boot project startup failure troubleshooting and DubboReference source code analysis

Problem phenomenon In our project, there is an internal two-party package with a class: MvcInterceptorAutoConfiguration defines a Bean accessContextResolver. To generate this Bean, you need to automatically inject another Bean: accessContextService. The code is as follows: public class MvcInterceptorAutoConfiguration implements WebMvcConfigur ...

Posted by Meltdown on Wed, 26 Jan 2022 16:34:14 +0100

Spring IOC: ComponentScanBeanDefinitionParser call chain

reference material: Learning Spring IoC source code: Context: detailed explanation of component scan node Previously:  Spring IOC: parseCustomElement call chain Written at the beginning: This article is a personal study note. The content is relatively casual and mixed with personal understanding. If there are mistakes, you are welcome to cor ...

Posted by imnsi on Wed, 26 Jan 2022 16:18:48 +0100

Handwritten Spring, define the tag type Aware interface, and realize the Aware container object

Author: Xiao Fu Ge Blog: https://bugstack.cn Precipitate, share and grow, so that you and others can gain something! 😄 1, Foreword I can't understand the code written by my colleagues! The big guy's code is like "Lai toad bubble frog, Zhang's ugly flower": a class implements multiple interfaces, the inherited class inherits ...

Posted by websesame on Wed, 26 Jan 2022 09:10:56 +0100

Mybatis prints the complete SQL and presents it to the front end

survey In the recent report writing function, when the data is inaccurate, you need to check the SQL running on the current interface and compare whether there is a problem with the SQL. Then you need to get the SQL statement running on the interface on the business side. The realization of this function is mainly considered from two aspects. ...

Posted by zampu on Wed, 26 Jan 2022 08:28:20 +0100

spring is embedded with cglib package, which hides a big pit

Problem discovery At 9 a.m. on January 21, 2022, a large area of "system unknown error" was reported in the order system, resulting in some users unable to place orders normally. Query the background log and you can see a large number of duplicate class attempt s. java.lang.LinkageError-->loader (instance of org/springframework/ ...

Posted by googlehunter on Wed, 26 Jan 2022 04:02:02 +0100

PowerMock integration unit test

catalogue 1, What is Mock? 2, Why use PowerMock? 3, Common notes and methods of PowerMock 4, How to use PowerMock for unit testing? 1, What is Mock? Mock is to create a mock object to simulate the behavior of some objects that are not easy to construct / obtain during the test. For example, if you need to call the B service, but the B se ...

Posted by grglaz on Tue, 25 Jan 2022 16:49:06 +0100

Learn Java-11 Spring from scratch

What is Spring Spring is a lightweight open source framework for layered Java SE/EE application full stack, with IOC (inversion control) and AOP (aspect oriented programming) as the kernel configuration file Name: whatever, but don't have Chinese Location: whatever <?xml version="1.0" encoding="UTF-8"?> <!-- Import constraints spr ...

Posted by tippy_102 on Tue, 25 Jan 2022 11:29:50 +0100

004Spring 003 using transactions in Spring

1 transaction manager 1.1 description Spring abstracts a complete set of transaction management mechanism from different transaction management API s, which makes the transaction management code independent of specific transaction technology. Developers manage transactions through configuration without knowing how the underlying layer is impl ...

Posted by rage123456 on Tue, 25 Jan 2022 09:34:29 +0100

Mysql combines the row data according to the conditions, and then transfers the column according to the conditions

background As required by the company, it is now necessary to make statistics on the data of the questionnaire filled in by the user. The final presentation style is EXCEL, and the content is the options of each question filled in by the user, that is, the following table style: User ID numberQuestion 1Question 2Question 3...Question 22110000 ...

Posted by sungpeng on Mon, 24 Jan 2022 16:16:37 +0100