Configure Maven 3.6 and Springboot to build Java Web projects

  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

Use logstash to collect log4J logs for ELK log processing

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

Synchronizer for Java Multithread Programming

Synchronizer Solutions are provided for each specific synchronization problem Semaphore Semaphore controls access to shared resources through counters. Test class: package concurrent; import concurrent.thread.SemaphoreThread; import java.util.concurrent.Semaphore; /** * Take the guest * www.coderknock.com * QQ Gro ...

Posted on Sat, 13 Apr 2019 23:03:33 -0400 by Courbois

Struts 2 Learning Logon Exercise in java

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

Implementation of Kmeans Data Mining Algorithms in hadoop

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 Also: http://www.cnblogs.com/chaoku/p/3748456.html Although the authors all say that perso ...

Posted on Thu, 11 Apr 2019 23:39:31 -0400 by bschaeffer

Spring Framework - Introduction to Spring

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

zookeeper Pseudo-Distributed Architecture

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

Some Problems Needing Attention in Linux System Security

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

shiro Learning Notes - Subject Login (token) Implementation Process

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 of shell Programming

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