ssm project construction (learning notes)
1. Construction of environment
Import the corresponding jar package using maven. The dependencies involved are as follows
<dependencies>
<!--Junit-->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version ...
Added by bionicdonkey on Sat, 08 Jan 2022 15:22:50 +0200
Explore the Bean life cycle of Spring~~
Source download
The source code of this chapter is github
What is the lifecycle of spring beans
For ordinary Java objects, create the object when new, and then the object can be used. Once the object is no longer used, Java automatically garbage collects it.
The objects in Spring are beans. Beans are no different from ordinary Java object ...
Added by joe2 on Sat, 08 Jan 2022 14:10:29 +0200
Learn to use spring security in spring boot
catalogue
Pre knowledge
Custom landing page
Let's start with custom jsp pages
Customize the use vue page
Connect to database query user name and password
Connect to database and query data
to configure
My information is relatively backward. I only know one thing today. The following is from the official website. Whether to study or not ...
Added by TheSaint97 on Fri, 07 Jan 2022 18:09:26 +0200
JVM lesson 1: introduction to JVM and class file format
Getting started with JVM
Inclusion relationship of JDK, JRE and JVM
JVM features
Some people say that classLoader does not belong to the JVM, and the concept does not matterInterpretation and compilation mix
Cross language platform The JVM is java independent Any language - compile or dynamically generate - > Class file - run in - > ...
Added by dud3r on Fri, 07 Jan 2022 05:18:40 +0200
How does spring solve circular dependency
First of all, it should be clear that spring handles loop dependencies in three ways:① Constructor's loop dependency: spring cannot handle this dependency, and directly throws a beancurrentylncreationexception.② setter cyclic dependency in singleton mode: handle cyclic dependency through "L3 cache".③ Non singleton circular dependency: ...
Added by MrXander on Fri, 07 Jan 2022 04:30:44 +0200
Spring MVC learning notes
preface
Recently, I learned spring MVC from shangsilicon Valley at station B. I felt that it was very good and easy to understand, so I partially modified and added the notes provided by the teacher according to my own understanding for future review
1, Introduction to spring MVC
Framework = configuration file + jar package
1. What is M ...
Added by woodsy2k on Thu, 06 Jan 2022 12:16:17 +0200
Mybatis learning notes: using annotation development (CRUD)
Learning content: using annotation development (CRUD)
1. How to use annotations
1.1. Annotation is implemented on the interface 1.2. The interface needs to be bound in the core configuration file 1.3 preparation of test procedures We can use annotations without writing usermapper XML (can be understood as interface implementation class ...
Added by tillaart36 on Thu, 06 Jan 2022 03:20:41 +0200
New work of mybatis plus team: mybatis mate easily learns data permissions
brief introduction
Mybatis mate is an mp enterprise level module. It supports sub database and sub table, data audit, data sensitive word filtering (AC algorithm), field encryption, dictionary writeback (data binding), data permissions, automatic generation of table structure, SQL maintenance, etc. It aims to process data more quickly and grac ...
Added by s4salman on Thu, 06 Jan 2022 01:12:11 +0200
Spring (transaction management, transaction propagation behavior, integration with MyBatis)
VIII Spring transaction management
A transaction can be regarded as a unit * * (whole) * *, which is composed of several operations on the database. When we develop enterprise applications, the most common operation for business members is the combination of multi-step operations for data reading and writing. Exceptions may occur at any st ...
Added by psych0 on Thu, 06 Jan 2022 00:42:31 +0200
Principle analysis of fastjason deserialization vulnerability
Introduction to fastjason
Fastjson framework Download: https://github/alibaba/fastjson
Fastjson JNDI Download: https://github.com/earayu/fastjson_jndi_poc
fastjson is a high-performance JSON library written in java language developed by Alibaba, which is used to convert data between JSON and Java Object. Instead of using java's serializa ...
Added by Nugen on Wed, 05 Jan 2022 21:54:45 +0200