Jsonpath use for Snack3
1. Introduction of Snack3 and JSONPath
Snack3 is a JSON framework that supports JSONPath.JSONPath is a powerful feature that can also be used as an Object Query Language (OQL) in the Java framework.
<dependency>
<groupId>org.noear</groupId>
<artifactId>snack3</artifactId>
<version>3.1.5.10</version&g ...
Posted by srboj on Tue, 10 Dec 2019 12:52:04 +0100
JAVAWEB file download
Use: file download in Java Web Environment
Front end page code:
<a class="formControls col-sm-5" id="view_filePath" ></a>
jquery code (data is the data obtained from the background by making ajax request)
$('#view_filePath').html(data.filePath);
$('#view_filePath').attr('href','/ctl-web/file/downFile?filePath ...
Posted by nassertx on Tue, 10 Dec 2019 11:37:40 +0100
Configuration and use of log4j in SSM framework
I. Introduction of related packages and dependencies
I use the method of slf4j+log4j to introduce pom files. There is another method of Commons logging + log4j. I will not talk about it here. You can refer to the materials you need.
<!--slf4j+log4j-->
<dependency>
<groupId>org.slf4j</groupId>
< ...
Posted by Matth_S on Tue, 10 Dec 2019 02:20:46 +0100
Firewall basic use
I. system environment
Centos7
Two, installation
$ yum install -y firewalld
III. basic startup command
$ systemctl status firewalld # View state
$ systemctl start firewalld # start-up
$ systemctl stop firewalld #Close
$ systemctl enable firewalld ...
Posted by FrancoPaddy on Mon, 09 Dec 2019 18:58:41 +0100
A quick look at ThreadLocal
Welcome to read and communicate with us. Please leave a message if you have any questions. There are also open sources on GitHub JavaHouse Welcome to star
1 Introduction
In Java8, ThreadLocal is a generic class.This class can provide thread variables.Each thread has its own variables.What does this mean?Every thread has its own resources, just ...
Posted by Vik on Mon, 09 Dec 2019 17:49:33 +0100
netty heartbeat detection
Netty is just a simple understanding. Please correct any mistakes.
Why do you have a heartbeat
If a connection is not used for a long time, it will be closed to reduce the connection pressure of the server.
Because the server needs to keep the connection information of the client, the client is likely to have various conditions, such as for ...
Posted by Lonepig on Mon, 09 Dec 2019 15:01:14 +0100
JavaScript cast
Since I haven't learned any other programming languages, as my first programming "native language", I won't give examples of other programming languages here. JavaScript, as a variable of dynamic type scripting language, has no type, so how can we convert its variables? And forced conversion.
JavaScript variables really have no type. ...
Posted by litarena on Mon, 09 Dec 2019 12:10:09 +0100
Unit test - Junit4+EasyMock build unit test
Unit test (1): spring boot establishes unit test
Unit test (2) - Junit4+EasyMock build unit test
Unit test (3) - establish multithreaded unit test
Add dependency
pom.xml
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
< ...
Posted by curby on Mon, 09 Dec 2019 11:27:50 +0100
Troubleshooting a UDP communication problem
Communication model
(a -- > B -- > A): a sends data to B through UDP (a can be a specified destination, or a broadcast message to b). B sends back a message to a according to the source address and port after receiving the message, which is such a simple communication process.
For the explanation of golang udp, please refer to the followi ...
Posted by PDXDesigner on Mon, 09 Dec 2019 08:37:47 +0100
Java sets PDF ordered and unordered list
The ordered or unordered list in documents is a way to reflect the hierarchical relationship or the same property of the content. Compared with the simple text description, it can effectively enhance the organization of the document content and highlight the key points. Therefore, this article will share methods for setting up ordered or unorde ...
Posted by trent2800 on Mon, 09 Dec 2019 07:32:01 +0100