Integration of ssm framework (spring+ springMVC+MyBatis)

SSM framework integration 1. Construction environment 1.1 create data table The MySQL database is used to create a database named ssm and a table named account. CREATE DATABASE ssm; USE ssm; CREATE TABLE account( id INT PRIMARY KEY auto_increment, NAME VARCHAR(20), money DOUBLE ); 1.2 create ...

Posted on Wed, 15 Jan 2020 08:14:23 -0500 by maxsslade

The strongest and most common development library - log class library in detail

Introduction to Log Library The most important thing is to distinguish the log system from the log facade. Secondly, the use of log libraries, including configuration and API usage; configuration focuses on the configuration of the log system, API usage focuses on the log facet; Finally, selectio ...

Posted on Mon, 13 Jan 2020 20:38:51 -0500 by Basdub

Microservice business log collection scheme

background Log content is complex and diverse, how to collect valuable logs is our focus. The value of logs actually depends on business operations. The value of the same type of logs in different business scenarios will be different. According to the past business practice, combined with some business requirements of the enterprise level, we c ...

Posted on Sat, 11 Jan 2020 06:23:29 -0500 by jabapyth

k8s deployment stateful service zookeeper example

Without considering the configuration file first: apiVersion: apps/v1 kind: StatefulSet #####A problem with fixed hostname and stateful service is that if the pod is not in running state, the hostname cannot be resolved, which constitutes a dead cycle. When I sed to replace the hostname, because the pod is not in running state, she can only ...

Posted on Fri, 10 Jan 2020 09:14:10 -0500 by lunny

9. ZooKeeper Installation Tutorial Details

@[TOC] 1. Environmental preparation 1.1 Download zooKeeper Looking at the documentation for hadoop 2.7.3, we can see that hadoop 2.7.3 was built with zookeeper-3.4.2 when it was highly available, so we followed the instructions of the hadoop website and installed zookeeper-3.4.2. Go to the website to download ZooKeeper 3.4.2Official address: h ...

Posted on Mon, 06 Jan 2020 16:44:21 -0500 by classix16

004 briefly introduce WordCount and count the number of words in the text

MapReduce introduction MapReduce is a distributed computing model, which mainly solves the computing problem of massive data. MR consists of two phases: Map and Reduce. Users only need to implement map() and reduce() functions to realize distributed computing. Schematic diagram of MapReduce MR execution process 2.MR schematic diagram      ...

Posted on Sat, 04 Jan 2020 15:16:38 -0500 by MikeDXUNL

Implementation process of Mybatis Log

Let's start with the log configuration in the Mybatis configuration file to see how it is implemented <configuration> <settings> <setting name="logImpl" value="NO_LOGGING"/> </settings> </configuration> Start with test code @Test public void shouldReadLogImplFromSettings() throws Exception { ...

Posted on Thu, 02 Jan 2020 11:29:02 -0500 by antonbrk

Python collects exception logs and sends mail

Introduction In the previous blog, we introduced sending tomcat exception log mail through log4j, and also mentioned that we would share the same function through python script. The advantage of this way is that we can collect the rest of the log information by modifying the regular expression in the script, and share the impl ...

Posted on Sun, 29 Dec 2019 16:09:17 -0500 by thinguy

[log framework and global log management] 3. Integration and use of log4j2 log framework

1, Introduce maven dependency Spring Boot uses LogBack by default, but we don't see the dependent jar package. In fact, the jar package Spring Boot starter logging is a part of Spring Boot starter web or Spring Boot starter dependency. If you want to use Log4j2 here, you need to remove the spring boot starter logging dependency from the spring ...

Posted on Thu, 26 Dec 2019 15:32:42 -0500 by Jibberish

How to append text to an existing file in Java

I need to add the text repeatedly to an existing file in Java. What do I do? #1 building I'll just add a few small details: new FileWriter("outfilename", true) 2. The nd parameter (true) is a parameter called appendable( http://docs.oracle.com/javase/7/docs/api/java/lang/Appendable.html )Function (or interface) of. It is respons ...

Posted on Thu, 26 Dec 2019 03:58:33 -0500 by philooo