Filter
Features:
Used to intercept incoming requests and outgoing responses.
Modify or process in some way the data stream being exchanged between the client and the server.
how to use?
Similar to using Servlet, Filter is an interface provided by Java WEB, and developers only need to customize a class and implement the interface.
package com. ...
Tip: after the article is written, the directory can be generated automatically. Please refer to the help document on the right for how to generate it
IP
IP address: each computer is assigned an identification numberPort: the identity of the application
package Network programming;
import java.net.InetAddress;
import java.net.Unknow ...
Posted by ocpaul20 on Sat, 21 May 2022 23:45:58 +0300
1. Message format of JMS
JMS message consists of the following three parts:
Message header:
Each header field has corresponding getter and setter methods.
Message properties:
If you need a value other than the header field, you can use the message properties.
Message body:
The message types defined by JMS include TextMes ...
Posted by faizanno1 on Sat, 21 May 2022 23:41:37 +0300
1. After we try to catch the throw object
public void re(int i) {
if (i > 5){
this.i = i;
}else {
try {
throw new Exception("Illegal data!");
} catch (Exception e) {
e.printStackTrace();
}
System.out.println("123");
}
The re ...
Posted by imarockstar on Sat, 21 May 2022 23:16:39 +0300
1. MyBatis first level cache
The first-level cache is at the SqlSession level. The data queried through the same SqlSession will be cached. The next time the same data is queried, it will be obtained directly from the cache and will not be re-accessed from the database.Four situations that invalidate the L1 cache:
Different SqlSession s ...
Author: Le byte - Keng Wang Lao Xue
For our developers who study technology, there are many technologies. At present, they may feel very complex and powerful, but in fact, all these technologies have been achieved through the gradual efforts of predecessors from the most basic functions over time. We are standing on the shoulders of many gian ...
Posted by subcool on Sat, 21 May 2022 20:48:37 +0300
Welcome to my GitHub
https://github.com/zq2599/blog_demos
Content: A summary of all original articles, including Java, Docker, Kubernetes, DevOPS, etc.
This is the second article in the MyBatis Beginner Actual Warfare series. We know how to integrate MyBatis in SpringBoot from the previous article. We will practice basic skills together: adding ...
Posted by Ekate on Sat, 21 May 2022 20:05:01 +0300
Shoot ing game day 5:
1. Add an access control modifier to the members in the class
2. Design Images Image Tools
Knowledge points:
1.package:
1) Function: avoid class name conflict
2) Full name of class: package name The class name cannot conflict with the class name in the package
3) Package names often have a hierarchy. 4) suggestion: ...
Import dependency
Due to the use of another UI interface, all imported dependencies are one more.
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.10.5</version>
</dependency>
<depende ...
You are the most shining light in the crowd
preface
AQS, the full English name of AbstractQueuedSynchronizer, is directly translated into abstract queue synchronizer. It's jdk1 5. A tool class for solving concurrency problems is created by the famous Doug Lea. Different from the synchronized keyword, AQS solves concurrency problems through code ...
Posted by richardk1 on Sat, 21 May 2022 12:59:19 +0300