Day 22 file and Io stream

File: an abstract representation of files and folders in java Construction method: public File(String pathname) Create a new File instance by converting the given pathname string to an abstract pathname. If the given string is an empty string, the result is an empty abstract pathname. public File(String parent,String child) Create a new Fi ...

Added by xtopolis on Wed, 23 Feb 2022 14:23:43 +0200

[understanding of Spring transaction propagation mechanism]

1. What is a business? Database transaction is simply to operate several different SQL statements as a whole, either all successful or all failed. It has four characteristics: atomicity, consistency, isolation and persistence. Spring transaction is a transaction processing mechanism encapsulated in database transaction. It has two manageme ...

Added by Fender963 on Wed, 23 Feb 2022 09:28:36 +0200

Learning spring MVC

SpringMVC First of all, let's learn about the classic MVC mode. The full name of MVC is Model View Controller. M refers to business model and data model, V refers to user interface and C refers to controller. The purpose of using MVC is to separate the implementation codes of M and V, so that the same program can use different expressions. ...

Added by benwhitmore on Mon, 21 Feb 2022 17:36:28 +0200

SSM Basics - getting started with Spring

Introduction to Spring framework Overview of Spring framework Spring is an open source design level framework, which solves the loose coupling problem between business logic layer and other layers. Therefore, it runs through the whole system application with the idea of interface oriented programming. Spring is a lightweight java develo ...

Added by usmc on Sun, 20 Feb 2022 21:14:58 +0200

Mybatis foundation + addition, deletion, modification and query (code example)

First, what is MyBatis? MyBatis is a state-of-the-art persistence framework that supports custom SQL, stored procedures, and advanced mapping. MyBatis eliminates almost all JDBC code and manually setting parameters and retrieving results. MyBatis can use simple XML or Annotations to configure and map primitives, mapping interfaces, and Java PO ...

Added by hesketh on Sun, 20 Feb 2022 14:15:42 +0200

2022Java learning notes 33 (object-oriented enhancement: inheritance, @ Override rewrite annotation)

2022Java learning notes 33 (object-oriented enhancement: inheritance, @ Override rewrite annotation) 1, What is inheritance 1. Inheritance is a relationship between classes 2. Multiple classes inherit a single class, and multiple classes can use the properties and behaviors of a single class 3. Multiple classes are called subclasses (derived c ...

Added by beachdaze on Sun, 20 Feb 2022 04:37:26 +0200

Servlet features, servlet implementation, servlet life cycle

1, What is a Servlet servlet is one of the Java EE specifications, which is the interface Servlet is one of the three major components of Java web. The three major components are: servlet program, filter and Listener listener. Servlet is a Java applet running on the server. It can receive the request sent by the client and respond to the da ...

Added by davard on Thu, 17 Feb 2022 15:11:26 +0200

Chapter 15 Java se special topic object-oriented advanced II - code block details

1. Code block overview Code block: also known as initialization block, it is a member of a class, similar to a method. It encapsulates logical statements in the method body and is surrounded by {};And methods: 1. No method name, no return value, no parameter, only method body;2. It is not called explicitly through an object or class, but im ...

Added by geo__ on Thu, 10 Feb 2022 21:11:29 +0200

Java EE foundation Chapter 15 reflection mechanism

Chapter 15 reflection mechanism You need to master the specified structure of obtaining Class instances, creating runtime Class objects, and calling runtime classes. Reflection overview Reflection is the key to being regarded as a dynamic language. Reflection mechanism allows programs to obtain the internal information of any class with the ...

Added by NiXXeD on Mon, 07 Feb 2022 20:44:06 +0200

Quick start Spring

Spring Realize the decoupling between classes: facilitate the management between classes 1. Light weight: it occupies less resources during operation, has high operation efficiency, and does not rely on other jar s 2. Decoupling: spring provides ioc control inversion, which enables the container to manage objects and their dependencies. The ...

Added by brendandonhue on Sun, 06 Feb 2022 22:45:29 +0200