The latest Maven 3.6 build Java Web project in conjunction with Spring boot is very convenient, just download Maven 3.6 to start building.
First, make sure that JDK is installed on the system:
[supervisor@localhost ~]$ java -version
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot ...
Posted on Tue, 16 Apr 2019 01:18:32 -0400 by mtimdog
Describes how to export log4J logs to Logstash from Java projects.
I. log4j Foundation
Official presentations that cannot be exempted from vulgarity:
Log4j is a reliable, fast and flexible logging framework (API) written in Java language and authorized by Apache Software License. It is ported to C, C++, C#, Perl, Python, Ruby and Eiffe ...
Posted on Mon, 15 Apr 2019 14:51:32 -0400 by ProjectFear
Solutions are provided for each specific synchronization problem
Semaphore controls access to shared resources through counters.
* Take the guest
* QQ Gro ...
Posted on Sat, 13 Apr 2019 23:03:33 -0400 by Courbois
Recently, I have encountered many mistakes in learning struts 2. Today, I would like to share with you that my development tool is Eclipse.
1. Download Struts 2 packages on the Internet. There are no more burdens here. Baidu has a lot of packages.
2. Create a new project, remember to add the web.xml file after it.
3. Deploy struts2 development ...
Posted on Fri, 12 Apr 2019 06:06:31 -0400 by mikep
Kmeans is a very common data mining algorithm. Its logic is relatively simple and its application scope is wide. There are many versions of Kmeans algorithm implemented by Baidu search java, such as: http://blog.csdn.net/jdplus/article/details/23960127
Although the authors all say that perso ...
Posted on Thu, 11 Apr 2019 23:39:31 -0400 by bschaeffer
Introduction to Spring
In order to understand better, I would like to talk about some of the things that are not there.
What is Spring
Spring is a layered JavaSE/EE full-stack (one-stop) lightweight open source frameworkStratificationSUN provides three layers of EE: web layer, business layer and data access layer (persistence layer/integration ...
Posted on Thu, 11 Apr 2019 13:51:31 -0400 by jpbox
Get the zookeeper binary package, address[ https://www.apache.org/dyn/closer.cgi/zookeeper/](https://www.apache.org/dyn/closer.cgi/zookeeper/The current stable version is 3.4.14
Unzip the file to a custom directory, where I unzip it to / opt/zookeeper
# tar -xf zookeeper-3.4.14.tar.gz -C /opt/
# cd /opt/
# mv zookeeper-3.4.14/ zookeeper
Go i ...
Posted on Mon, 08 Apr 2019 23:00:31 -0400 by master123467
Write on the front: When you deploy a server, the first step should not be to deploy the application, security is the first task.
If one day you log on to the server and find commands like / bin/bash - i, Python - C'import pty; pty. spawn ("/bin/sh") appear on the server, then congratulations, the server has been hacked.
But intrude ...
Posted on Fri, 05 Apr 2019 23:57:30 -0400 by buddhika2010
All the code in this blog is the source code of Shiro version 1.3.2 in Shiro official website (http://shiro.apache.org/).
The login (Authentication Token token) method that tracks the Subject calls the login method of the Delegating Subject class. Delegating Subject implements the Subject interface. Delegating Subject login is as follows:
1 p ...
Posted on Thu, 04 Apr 2019 16:51:29 -0400 by madk
Conditional Judgment Statement and Process Control in shell Programming
Simply put, judgment statements like if, for, case, where, and then combined with some shell commands to simplify some operations.
The following content is the key point, the key point of conditional judgment!!! It doesn't matter if you don't understand it at first. Here ...
Posted on Wed, 03 Apr 2019 13:57:30 -0400 by philicious