Simple relationship among SqlSession, SqlSessionTemplate, SessionFactory and SqlSessionFactoryBean in Mybatis

When learning mabatis or looking at the company's mybatis project, many beginners are always confused about the relationship between SqlSessionSql, SqlSessionTemplate, SessionFactory and SqlSessionFactoryBean. Especially when we look at other people's code, different projects are completed by different people with different styles. Some people ...

Posted by stennchau on Tue, 08 Feb 2022 21:16:23 +0100

6. Spring Static and Dynamic Agent Modes

(The article notes come from the b-station video, meets the mad saying, carries the notes as learning, for your reference to study together) Static/dynamic proxy mode proxy pattern Why learn proxy mode, because the underlying mechanism of AOP is dynamic proxy! Agent mode: Static ProxyDynamic Proxy Before learning aop, learn about proxy mo ...

Posted by jacomus on Tue, 08 Feb 2022 18:50:27 +0100

Build a Spring Cloud Finchley distributed microservice project managed by Gradle multi module

Spring Cloud is a tool set built on the basis of Spring Boot to quickly build a general pattern of distributed systems. Let's not talk about other theories, usage scenarios, history and so on, but directly cut into the theme. Here, I'll build a simple Spring Cloud application. Since it has been used for 9102, of course, it should keep pace wi ...

Posted by Rebel7284 on Tue, 08 Feb 2022 15:53:22 +0100

Spring learning notes

This note is compiled when I study at station B. in order to better study, I will organize it into notes to prevent forgetting relevant knowledge points. Spring overview summary Spring: it appeared around 2002, reducing the difficulty of enterprise development. Help to manage between modules and between classes, help developers create obje ...

Posted by clearstatcache on Tue, 08 Feb 2022 09:44:00 +0100

From bronze to King, finish Maven with one article and collect it quickly

Click like and watch again, form the habit of praise, search wechat [coriander Chat Game] and pay attention to me catalogue 1. What is maven and why does it exist? What is the project structure like and how to locate jar s 2. Operation of Idea 4. Main components of Maven coordinates 5. maven lifecycle 6. Configuration of idea maven 7. ...

Posted by ruddernz on Tue, 08 Feb 2022 09:40:19 +0100

spring5 dynamic agent AOP

Agent mode why should we learn agent mode? Because this is the bottom layer of spring AOP Our business logic is like this dao layer - > service layer - > controller layer - > front end Like static agents, dynamic agents are dynamically generated. Before you look at dynamic proxies, look at two classes Proxy: proxy class, which has a ...

Posted by briglia23 on Tue, 08 Feb 2022 02:26:40 +0100

Spring Basics

Important Spring modules Spring Core: the core module, which mainly provides IOC dependency injectionSpring AOP: aspect oriented programming implementationSpring JDBC: connecting to databaseSpring Web: creating web applicationsSpring Test: test function of Junit and TestNGSpring WebSocket: it is easy to implement even chat components @RestCon ...

Posted by talper on Mon, 07 Feb 2022 14:20:16 +0100

Several methods of reading externalized configuration by Spring boot

In this article, we mainly discuss the externalized configuration function of Spring Boot. This function mainly realizes the mutual cooperation with the code through external configuration resources, so as to avoid hard coding and provide the flexibility of application data or behavior changes. This paper mainly records several common operation ...

Posted by RobertPaul on Mon, 07 Feb 2022 07:57:11 +0100

Embedded servlet container of SpringBoot

1. SpringBoot is the default servlet container The default servlet container of SpringBoot is tomcat, as shown in the following figure: 2. Embedded servlet configuration modification 2.1. Modify through global configuration file 1. You can use server XXX for web service configuration. If there is no server name, it is a genera ...

Posted by schlag on Mon, 07 Feb 2022 04:25:57 +0100

Hot deployment and logging of SpringBoot

1. Hot deployment of devtools in SpringBoot 1.1. What is hot deployment Hot deployment means that every time we modify some codes and related configurations during development, we don't need to restart the whole system. We just need to wait a few seconds to automatically load the modified things successfully. 1.2. How to enable Spri ...

Posted by jimmyhumbled on Mon, 07 Feb 2022 04:03:53 +0100