Spring hides real errors, making troubleshooting difficult

Hello, I'm looking at the mountain. Today, after the project relies on a basic component, it failed to start. The troubleshooting process took some detours. Finally, it was confirmed that the Java. Com was caused by the version conflict of dependent components Lang.noclassdeffounderror exception. The following is the troubleshooting process. ...

Posted by rockroka on Sun, 02 Jan 2022 12:48:55 +0100

Inventory of Bean injection methods in Spring

background In Spring, we always unscrupulously obtain Bean objects through IOC. In line with the principle of thinking of the source after drinking water, we will analyze in detail the various gestures injected by Bean. In fact, there is another key point. I like to ask this question during the interview. What do you know about Spring Bean inj ...

Posted by angelena on Sat, 01 Jan 2022 20:51:28 +0100

Spring source code download and construction skills based on Gradle

1 spring 5 source code download First of all, your JDK needs to be upgraded to version 1.8 or above. Starting from Spring 3.0, the Spring source code is hosted by GitHub, and the official website download link is no longer provided. I won't go into too much detail here. You can go to GitHub website to download by yourself. The download link of ...

Posted by gregchet on Sat, 01 Jan 2022 20:07:12 +0100

11, SpringCloud Bus message bus for SpringCloud microservices

SpringCloud Bus message bus 1. General 1.1 what is it SpringCloud Bus can be used with Springcloud Config to dynamically refresh the configuration It is a framework used to link the nodes of distributed system with lightweight message system. It integrates the event processing mechanism of Java and the function of message middl ...

Posted by fibonacci on Sat, 01 Jan 2022 19:17:43 +0100

Spring - AOP's use of 5 big notification annotations

Catalog 1. Steps to notify annotations using AOP 1.1 pom. Add maven dependencies to XML files 1.2 Declare the automatic proxy generator for AspectJ in the Spring configuration file 2.5 Notification Notes in AOP 2.1 @Before: Pre-notification 2.2 @AfterReturning: Post Notification 2.3 @Around: surround notifications 2.4 @AfterThrowing: ex ...

Posted by silent on Sat, 01 Jan 2022 07:42:14 +0100

Integration project of SSM

Project introduction: What is ssm? ssm represents the integration project of Spring + spring MVC + mybatis; The integration of SSM framework is to realize the integration of Spring and Spring MVC, Spring and Mybatis respectively, and the main work of the integration is to configure the objects in Spring MVC and Mybatis into the Spring contai ...

Posted by misteraven on Sat, 01 Jan 2022 00:41:53 +0100

framework learning notes Day10 --- spring MVC Foundation

Spring MVC overview Three layer structure summary Spring MVC is a lightweight Web framework based on Java to implement MVC model.Spring MVC has become one of the most popular MVC frameworks, and with spring 3 0, comprehensively surpassing struts 2 and becoming the best MVC framework. Through a set of annotations, it makes a simple Jav ...

Posted by PigsHidePies on Fri, 31 Dec 2021 23:07:14 +0100

Interview build rocket series, planted in cglib and jdk dynamic agent

Hello, I'm the technical interviewer of XX Baba company. Are you Zhang Xiaoshuai. The voice came from the other end of the phone Yes, hello. Xiaoshuai was secretly pleased that Dachang finally found me. "Let's have a telephone interview. Please introduce yourself first." “balabalabla...” Xiaoshuai gave a general descrip ...

Posted by dgwade on Fri, 31 Dec 2021 18:46:25 +0100

mock feign Client in microservice for restful unit test

Today, I share a unit test example of restful interface in microservice, which mainly involves three aspects: mock of internal call, serialization and deserialization of interface DTO, and accelerating the execution of unit test cases with MockMvc. Unit testing requires that it does not rely on external services, so that it can be easily exec ...

Posted by laflair13 on Fri, 31 Dec 2021 18:22:58 +0100

Convert a JSP/Servlet project to a Spring Boot project

Create Spring Boot application Before refactoring JSP applications based on Spring, we first introduce Spring Boot to make it a Spring Boot application. You only need to add simple configuration and a small amount of code on the basis of the original code to introduce Spring Boot. The whole process can be completed in 5 minutes. Here, we use ...

Posted by Pig on Fri, 31 Dec 2021 09:19:15 +0100