Understand XML technology in one article
Learning objectives
I XML overview
1 Concept
XML (Extensible Markup Language): Extensible Markup Language
Extensible: all labels are customized.
2 development process
Both HTML and XML are standards formulated by W3C (World Wide Web Consortium). At first, the syntax of HTML was too loose, so W3C formulated ...
Added by pnj on Fri, 04 Feb 2022 14:27:07 +0200
Java EE basics Chapter 13 IO flow
Chapter 13 IO flow
Use of File class
1. An object of file class, which represents a file or a file directory (commonly known as folder)
2. The file class is declared in Java Under IO package
3. The file class involves the creation, deletion, renaming, modification time, file size and other methods of files or file directories, and does not ...
Added by altexis on Thu, 03 Feb 2022 02:29:02 +0200
16 object oriented 04.2 -- abstract class oriented programming
abstract class
1 Concept
Can be defined in Java abstract Keyword modified method, which has only declaration and no method body, is called abstract method Classes modified by abstract keyword can be defined in Java. Classes modified by abstract keyword are called abstract classes
If a class contains abstract methods, it must be an abstra ...
Added by vh3r on Tue, 01 Feb 2022 12:33:19 +0200
One year's work experience, I was asked about CAS
Wedge
In the previous article, we introduced synchronized and learned that synchronized can solve the atomicity problem of some data. In this article, we continue to learn the knowledge of CAS non locking with AtomicInteger as the starting point.
Using synchronized to solve the atomicity of i + +
Use the synchronized keyword to ensure data a ...
Added by twopeak on Thu, 27 Jan 2022 16:48:20 +0200
javaWeb project >_ < Project with me (super detail - Episode 1)
0 overview
Make one jiavaweb You can finish the hand training project javaweb The application of knowledge points in the project can also exercise the logical idea of function realization. Let's take a look at the effect diagram below
The project is divided into two parts. The first part mainly completes the function of student manag ...
Added by firelior on Mon, 17 Jan 2022 09:10:51 +0200
Mybatis IV: mybatis configuration summary
https://mybatis.org/mybatis-3/zh/index.html
1, Mybatis official website definition
Mybatis configuration
1. Type aliases
Type alias sets an abbreviated name for a Java type. It is only used for XML configuration and is intended to reduce redundant fully qualified class name writing. For example:
<typeAliases>
<typeAlias alias ...
Added by mmorton on Sun, 16 Jan 2022 07:42:25 +0200
Do you understand Netty? Can't understand the source code? It doesn't exist. Take you to read the Netty source code
Prepare the following code in advance, start from the server construction, and deeply analyze the startup process of Netty server.
public class NettyBasicServerExample {
public void bind(int port){
//The server programming of netty should start with EventLoopGroup,
// We want to create two eventloopgroups,
// One ...
Added by jstarkweather on Fri, 14 Jan 2022 19:08:09 +0200
day05 [exception, thread]
day05 [exception, thread]
primary coverage
Exception, thread
Teaching objectives
Be able to distinguish between exceptions and errors in programs Say the classification of exceptions Say how the virtual machine handles exceptions Three common run-time exceptions are listed Be able to handle exceptions using the try... catch keyword Be able ...
Added by mayanktalwar1988 on Fri, 14 Jan 2022 06:49:06 +0200
Implementation and thinking of disconnection and reconnection of Netty client
preface
In the implementation of TCP long connection function, disconnection and reconnection of the client is a very common problem. When we use netty to realize disconnection and reconnection, have we considered the following problems:
How to listen to the disconnection between the client and the server?How to reconnect after disconnection? ...
Added by curlious on Thu, 06 Jan 2022 15:19:28 +0200
MyBatis02 -- getting started
1, Introductory case
MyBatis development preparation Build MyBatis development environment and realize the first case
1. Prepare with Mybatis
download mybatis
2. Build MyBatis development environment
1) Create MySQL database and tables
Database name ssm; Table name student Create table statement
CREATE TABLE `student` (
`id` int(11 ...
Added by cytech on Wed, 05 Jan 2022 13:16:12 +0200