mybatis review of ssm review

1: Link to idea database 2: The first mybatis process 1: The package and xml interceptor required by Maven are intercepted and scanned <?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. ...

Posted by Fruct0se on Wed, 09 Mar 2022 08:38:49 +0100

JAVA300 set basic knowledge learning

Algorithm website: https://visualgo.net/ Chapter 5 advanced JAVA object-oriented programming To create a new package, write it upside down according to the domain name to ensure that the package is unique You can create new classes in the package. The directory tree is shown in the figure below 5.2 5.2.3 = = and equals methods ...

Posted by sprocket on Wed, 09 Mar 2022 08:17:33 +0100

Problems encountered in 2022 work II

1. Two way binding does not take effect The drop-down box has three options: A, B and C, but after selecting B, it still displays A. in fact, the value selected in v-model has become B, but the display has not changed. Cause of problem: queryParams. Attribute of v-model binding xxx and queryParams are attributes declared in data. xxx is not w ...

Posted by Rustywolf on Tue, 08 Mar 2022 01:44:56 +0100

Crazy God said Spring02: get started quickly hellosppring

HelloSpring 1. Create spring-02-hellospring 2. Add Hello entity class public class Hello { private String str; public String getStr() { return str; } public void setStr(String str) { this.str = str; } @Override public String toString() { return "Hello{" + "str='" + str + ...

Posted by cdherold on Mon, 07 Mar 2022 13:59:29 +0100

Notes on the mybatis framework

Note: This article is a note taken following the mybatis course of crazy God talking about java. Don't spray it if you don't like it! Link to mybatis Video: [crazy God says Java] the latest complete tutorial of Mybatis, the IDEA version is easy to understand_ Beep beep beep_ bilibili What is MyBatis MyBatis is an excellent persistence la ...

Posted by russlock on Sat, 05 Mar 2022 09:39:45 +0100

Chapter 6 notes static, final and constant design

Chapter 6 notes static, final and constant design Section 1 static Static static, a special keyword in Java - Variable - Method - class - anonymous method block Static variable, class common member The static variable only depends on the existence of the class (accessed through the class)The values of static variables of all object ...

Posted by ojsimon on Thu, 03 Mar 2022 16:16:25 +0100

IDEA+Java+JSP+Mysql+Tomcat to realize Web pet information management system

catalogue 1, System introduction 1. Development environment 2. Technical selection 3. System functions 4. Database files 5. System screenshot 2, System display 1. Log in to the system 2. System home page 3. New pets​ 4. Modify pets 3, Partial code AdminDaoImpl PetDaoImpl pet-add.jsp pet-add-do.jsp pet-update.jsp pet-update-d ...

Posted by webnick on Thu, 03 Mar 2022 10:47:14 +0100

java note 7 array and storage structure

VII Arrays and data storage Learning objectives: 1. Array definition An array is an ordered collection of data of the same type. Among them, each data is called an element, and each element can access them through an index (subscript). Four basic features of arrays: The length is determined. Once an array is created, its size cannot be ch ...

Posted by amansabharwal on Wed, 02 Mar 2022 19:11:57 +0100

Java reflection mechanism

Overview of Java reflection mechanism 1.Java reflection: the mechanism refers to that in the running state of the program, the object of any class can be constructed, the class to which any object belongs can be understood, the member variables and methods of any class can be understood, and the properties and methods of any object can be ...

Posted by guitarlvr on Tue, 01 Mar 2022 14:34:30 +0100

JSR303 data verification Spring unified exception handling

JSR303 performs data verification 1. Add verification annotation to Bean Multiple annotations can be verified @NotBlank(message = "Brand name cannot be empty") private String name; //Cannot be empty + custom rule @NotEmpty @Pattern(regexp = "!/^[a-zA-Z]$/",message = "The search initial must be a letter") private String firstLetter; //Canno ...

Posted by Kodak07 on Tue, 22 Feb 2022 00:50:58 +0100