Common condition annotation

Common condition annotation @ Conditional annotation in spring Basically, all extended class conditional annotations are extended based on this annotation. This annotation is from spring 4 Use after 0. It is generally used to limit whether the configuration class is effective or whether a bean needs injection. @Definition of Conditional //T ...

Posted by parboy on Tue, 21 Dec 2021 19:22:55 +0100

Handwritten simple version of Spring framework: design and implementation of resource loader, from Spring XML parsing and registering Bean objects

target After completing the prototype of Spring framework, we can now manually operate the definition, registration and property filling of Bean objects through unit testing, and finally obtain the object and call methods. However, there will be a problem here, that is, if you actually use the Spring framework, it is unlikely to let users crea ...

Posted by prcollin on Tue, 21 Dec 2021 00:17:17 +0100

The prototype pattern of JAVA and pattern

The beginning of Dr. Yan Hong's Book JAVA and patterns describes the Prototype pattern as follows: The prototype pattern belongs to the creation pattern of the object. By giving a prototype object to indicate the type of all created objects, and then create more objects of the same type by copying the prototype object. This is the purpose of t ...

Posted by raw100 on Mon, 20 Dec 2021 17:16:28 +0100

SpringBoot practice: elegant use of enumeration parameters in RequestBody

This picture was created by Christian_Crowd stay Pixabay Publish on Hello, I'm looking at the mountain. As mentioned earlier Elegant use of enumeration parameters and Implementation principle , this article goes on to talk about how to use enumeration gracefully in RequestBody. This article will start with the actual combat and talk a ...

Posted by bschmitt78 on Mon, 20 Dec 2021 11:46:35 +0100

Java Network Shop Project SpringBoot+SpringCloud+Vue Network Shop (SSM front-end and back-end separation project) Thirteen (Feign interface call best implementation)

1. Create a search service (1) Create a module: (3) Introducing dependency <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0 ...

Posted by ashii on Sun, 19 Dec 2021 23:36:28 +0100

Spring IOC container - Bean management - super detailed explanation based on XML!!!

Spring IOC container - Bean management - based on XML ๐ŸŽˆ๐ŸŽˆ๐ŸŽˆ Spring framework overview Spring is a lightweight open source Java EE frameworkSpring can solve the complexity of enterprise application developmentSpring has two core parts: IOC and AOP IOC: inversion of control, leaving the process of creating objects to Spring for manageme ...

Posted by benracer on Sun, 19 Dec 2021 22:09:34 +0100

spring cloud netflix microservice instance

Project introduction spring cloud netflix provides a full set of support for microservices, including service registration and discovery, routing, load balancing, circuit breaker, etc. you can see the principles and usage Official website corresponding to spring The content of the official website is quite practical. You should pay attention t ...

Posted by AlanG on Sun, 19 Dec 2021 20:16:51 +0100

Detailed explanation of Mybatis knowledge points and solutions to problems encountered, dynamic agent, annotation and reflection

1.Mybatis: First meet Mybatis: Introduction to MyBatis Environmental description: jdk 8 +MySQL 5.7.19maven-3.6.1IDEA Before learning, you need to master: JDBCMySQLJava FoundationMavenJunit What is Mybatis: MyBatis is an excellent persistence layer framework MyBatis avoids almost all JDBC code and the process of manually setting param ...

Posted by PetrZagvazdin on Sun, 19 Dec 2021 18:00:50 +0100

spirng data binding

Data binding Introduction to data binding When executing the program, Spring MVC will convert and bind the information in the request message to the method parameters of the controller class in a certain way according to the different request parameters of the client. This process of connecting request message data with background method para ...

Posted by nonexistentera on Sun, 19 Dec 2021 10:26:29 +0100

Eureka registry

<!--Spring Boot--> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.6.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <!--eureka--> <dependency&g ...

Posted by TodManPlaa on Sun, 19 Dec 2021 08:29:54 +0100