The parameters passed from the front end are automatically converted to enumeration -- spring convert conversion

The string passed from the front end is automatically converted to the corresponding enumeration method background In the project, we usually use enumeration to receive some parameters with fixed values. For example, in this project, we need to pass a language parameter. This parameter has three values in the system: Chinese, English and trad ...

Posted by rodin69 on Mon, 29 Nov 2021 00:12:30 +0100

Student management system based on Spring MVC + Spring + MyBatis

Resource download: https://download.csdn.net/download/weixin_44893902/45602690 Exercise point design: fuzzy query, delete, add 1, Language and environment Implementation language: JAVA language.Environment requirements: MyEclipse/Eclipse + Tomcat + MySql.Use technology: Jsp+Servlet+JavaBean or spring MVC + Spring + mybatis. 2, Realiz ...

Posted by burningkamikaze on Sat, 27 Nov 2021 04:41:08 +0100

Where does spring security default user name and password come from and why write UserDetails

1. Create a normal Spring boot project After creating the project, start it directly, and the password will be printed on the console: Enter in the browser http://localhost:8080 , it will jump to the login page: The default user name is user, and the password is printed on the console. This indicates that spring security is effectiv ...

Posted by RobM on Sun, 21 Nov 2021 01:32:05 +0100

Several ways of initializing operation when SpringBoot project starts

preface Usually, in our project development, we often encounter the situation that we need to automatically execute some business code as soon as the service is started. For example, cache the configuration information or data dictionary in the database to redis, or open some configured scheduled tasks when the service is started. There are act ...

Posted by tim_perrett on Sat, 20 Nov 2021 14:51:27 +0100

Spring AOP aspect oriented programming

dd Starting from this section, you will enter a new stage to learn AOP aspect oriented programming of Spring. dd dd 1, Getting to know AOP 1. Introduce AOP spring provides A pluggable component technology. It sounds tall, but we often encounter such scenes in our daily life. For example, we have developed two software modules, A and B. ...

Posted by Kaizard on Sat, 20 Nov 2021 04:22:37 +0100

Use of spring MVC annotations

Background: the traditional style Controller is written by the class that implements the Controller interface. This Controller not only needs to deploy mapping in the configuration file, but also can only write one processing method, which is not flexible enough. Spring 2.5 adds the Spring MVC annotation function to replace the traditional ...

Posted by somethingorothe on Sat, 20 Nov 2021 04:09:55 +0100

Analysis of Bean life cycle source code in Spring

Bean life cycle Compared with the life cycle of beans created by ourselves, they are instantiated through the new keyword and recycled when they are no longer used. The life cycle of beans in the Spring container is more complex. Let's take a look at the following bean life cycle diagram. As a supplement to the above figure, there should be ...

Posted by AbsolutelyFreeW on Sat, 20 Nov 2021 03:28:35 +0100

Spring's core mechanism -- dependency injection

catalogue Concept of dependency injection First, create a common class Modify the TestHello class again Modify profile Writing test classes Operation results   analysis   Two ways of dependency injection set injection Structural injection   Operation results   Comparison of two injection methods Concept of d ...

Posted by orange08 on Sat, 20 Nov 2021 03:23:33 +0100

Detailed explanation of configuration files in SSM framework

We have been integrating the SSM framework these days. Although there are many integrated ones on the Internet, we haven't explained too much about the configuration files. Many people know it and don't know why. After several days of search and sorting, we finally have a certain understanding of the XML configuration files, so we take them out ...

Posted by Derleek on Sat, 20 Nov 2021 03:22:25 +0100

SpringBoot basic configuration

Copy project 1. Retain the engineering infrastructure 2. Erase the original engineering trace Steps: 1. Copy the created folder into a springboot_0x_xxxxxxx folder 2. Enter springboot_ 0x_ XXXXXXXX modify factid 6 in pom.xml file 3. Delete unnecessary files, leaving only src and pom.xml files 4. Then spring boot_ 0x_ XXXXXXXX can be used as a ...

Posted by chrispos on Fri, 19 Nov 2021 18:38:01 +0100