Actual project configuration

application.properties file Configuration dependency: Build project environment: code generator Query function mapper is an interface interface. You need to add a configuration class before it can be managed by springboot Delete function Making a file is the generated entity class entity Pass value ...

Posted by danwatt on Sat, 29 Jan 2022 02:06:13 +0100

Introduction to Spring transaction management -- xml declarative transaction management

Spring transaction management simplifies the traditional transaction management process and reduces the workload of developers to a certain extent, because if spring transaction management is not used, programmers have to write programs to deal with it. They need to consider a series of problems such as how to connect with the database and driv ...

Posted by me1000 on Fri, 28 Jan 2022 22:40:04 +0100

Basic summary of spring IOC

  Article catalogue catalogue Article catalogue 1, What is Spring 2, Advantages of Spring framework   3, Detailed explanation of spring IOC mechanism   IOC role summary Detailed explanation of spring IOC mechanism 1, First build maven project and add dependencies 2, Create persistence layer and implementation class 3 ...

Posted by Graxeon on Fri, 28 Jan 2022 16:25:03 +0100

3. Understand the principle of automatic configuration (SpringBoot2)

  1.SpringBoot features 1.1 dependency management Dependency management of parent project Dependency management <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.4.RELEASE</version> </parent> His p ...

Posted by vishal99 on Fri, 28 Jan 2022 14:54:36 +0100

Spring series - 2.2 ConfigurationClassPostProcessor

Spring version: spring 5.2.9 BUILD-SNAPSHOT Modified part of the source code, but does not affect the main process summary ConfigurationClassPostProcessor is a post processor of BeanFactory, which implements the BeanDefinitionRegistryPostProcessor interface and also has the ability of BeanFactory postprocessor. It is used for parsing related ...

Posted by Sxooter on Fri, 28 Jan 2022 13:17:12 +0100

Maven attribute and Profile

When the project is developed based on the spring framework, a large number of spring modules need to be introduced, such as core, beans, context, jdbc, etc. when the above modules are introduced, the modules of the same version are used. At this time, we will define a maven attribute to deal with this application scenario. However, there are m ...

Posted by Riparian on Fri, 28 Jan 2022 12:40:38 +0100

Spring (IOC, hellosppring, dependency injection, automatic assembly of bean s, annotation, spring integration, Mybatis, declarative transaction...)

1 Spring 1.1 INTRODUCTION SpringSSH: Strust2 + Spring + HibernateSSM: SpringMvc + Spring + Mybatis Official website: https://docs.spring.io/spring-framework/docs/current/reference/html/overview.html#overview GitHub: https://github.com/spring-projects/spring-framework/releases <!-- https://mvnrepository.com/artifact/org.springframework/ ...

Posted by benny_g on Fri, 28 Jan 2022 11:21:23 +0100

10. Develop [notes] using notes

Using annotation development After spring 4, if you want to use annotation form, you must introduce aop package In the configuration file, a context constraint [context] must be introduced <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/X ...

Posted by Shawn Jetton on Fri, 28 Jan 2022 11:09:24 +0100

Let's take a look at the implementation principle of spring MVC core components

In spring MVC, if we need to open the annotation, that is, @ RequestMapping, which we often use, and the @ Controller annotation needs to take effect, we usually use the label "< MVC: annotation driven / >" provided by the spring MVC framework to complete it. So how does this tag complete annotation driven to make annotations ef ...

Posted by Muses on Fri, 28 Jan 2022 05:15:49 +0100

9 - Spring5 learning notes - JDK dynamic proxy, AOP operation terms

JDK dynamic agent 1. Use JDK to dynamically create Proxy objects by using the methods in the Proxy class (1) Call the newProxyInstance method Static object newproxyinstance (classloader, class <? > [] interfaces, invocationhandler h) Returns an instance of the proxy class of the specified interface that dispatches method calls to th ...

Posted by Sorrow on Fri, 28 Jan 2022 04:42:48 +0100