Introducing log4j dependencies
When we created the Spring Book project, we introduced spring-boot-starter, which includes spring-boot-starter-logging, which is the default log framework of Spring Boot, Logback. So before we introduce log4j, we need to eliminate the dependency of the package and then introduce log4j dependency, as follows:
Posted on Thu, 20 Dec 2018 04:15:05 -0800 by edmore
Background: During the Spring Festival, the server always suddenly disconnects the database link and always needs to restart tomcat manually. This is really a hard job. I can't solve the problem on the database. I simply write something to do the restart work of regular detection.
Server environment: Windows 2003 service
tomcat version: tomca ...
Posted on Thu, 20 Dec 2018 03:45:04 -0800 by woodsonoversoul
Now we build the following for the eureka project of HongHu cloud. The whole process of building is very simple. I will record every step of the process. I hope it can help you:1. Create a maven project named particle-common-eureka and inherit particle-commonservice. The specific pom.xml configuration file is as follows:<?xml version="1 ...
Posted on Wed, 19 Dec 2018 22:18:05 -0800 by FarhanKhalaf
Access Control - Prohibit php parsing.
note prohibits parsing PHP under a directory, which is very useful. When we do website security, this is used a lot. For example, some directories can upload files. In order to avoid the Trojan horse of uploaded files, we prohibit access under this directory to parse PHP.
1. Disable parsing PHP first
Posted on Wed, 19 Dec 2018 03:57:04 -0800 by mohson
In writing Spring Boot applications, you will encounter such scenarios as: you need to send some messages, e-mails and other operations on a regular basis, or you may regularly check and monitor some signs, parameters and so on.
Create timed tasks
Writing timing tasks in Spring Boot is very simple. Here is an example of how to create timing tas ...
Posted on Tue, 18 Dec 2018 20:12:04 -0800 by Stickdragon
This article defaults that the reader already knows about Docker and knows the advantages of using Docker for deployment.
1. Install Docker (Mac)
Official website: https://docs.docker.com/docker-for-mac/install/
1.1 Download Docker for Mac
After download ...
Posted on Mon, 17 Dec 2018 16:33:04 -0800 by zysac
Spring Boot CLI (Command Line Interface) is a command line tool that you can use to quickly build Spring prototype applications. With Spring Boot CLI, we can quickly build Spring Boot applications by writing Groovy scripts and run them on the command line. Let's learn how to install and use Spring Boot CLI.
Install Spring Boot CLI
Posted on Sat, 15 Dec 2018 12:18:03 -0800 by Dynamis
Recently, Apache Hadoop distributed cluster has been built on our laptop, which uses the latest stable version 2.8 and configures the high availability of HA of NameNode and ResourceManager to facilitate the daily research and testing of Hadoop. The detailed construction process is as follows:
1. Install docker and create docker container to b ...
Posted on Sat, 15 Dec 2018 03:57:03 -0800 by hansman
CentOS 7 Linux installs Tomcat 8 - Start multiple service instances with the same package (how about zgbn)
This article mainly introduces the same Tomcat package to start multiple service instances, although in many cases some programmers feel bored to do so, but for me who will save disk space very much, this method is still very good, and t ...
Posted on Fri, 14 Dec 2018 12:09:04 -0800 by chuckym7
The log components of the java community which occupy a larger market share are log4j 1. * to logback, and then to the upgraded version of log4j 2. * after integration. It is said that the performance of log4j 2 is the most NB after testing by netizens. So I started to integrate the log4j2 framework into my Spring mvc5 project. For the ...
Posted on Fri, 14 Dec 2018 00:24:07 -0800 by 1bigbear