By learning the basic knowledge of spring, I learned that in order to reduce the complexity of Java development, spring adopted the following four key strategies:
Lightweight and minimally invasive programming based on POJO;
Loose coupling is realized by dependency injection and interface oriented;
Declarative programming based ...
Posted on Tue, 12 Nov 2019 16:15:42 -0500 by atrum
For appearance mode, it is very frequent in project development and practical application, but it is very easy to understand. Here is a brief introduction.
I. concept introduction
Facade, which hides the complexity of the system and provides the client with an interface to access the system. This type of design pattern belongs to structural pat ...
Posted on Mon, 04 Nov 2019 14:04:58 -0500 by jakobdoppler
The logging mode of kettle 4.1 and 5.4 redevelopment
Log4j version: log4j-1.2.17.jar
kettle 4.1 logging
Because log4j.xml file is integrated in the kettle-engine.jar package, log4j loads XML configuration file by default;
This log4j.xml file only provides console output configur ...
Posted on Fri, 01 Nov 2019 14:50:18 -0400 by YorkshireSteve
Basic 5 steps
Create a. properties file for viewing console sql statements
Create MyBatis core profile
Create mapping file mapper for database operation
Create a common class to define some properties
Create a test class to test
The following is a simple test. The database table is t_customer,id ...
Posted on Thu, 31 Oct 2019 04:20:08 -0400 by theo
In normal development, when looking for problems, reading logs is often an indispensable event. For the error log, we hope to know it immediately, trace the source of the error quickly, and then correct the error. The appearance of the nail robot undoubtedly provides us with a wonderful tool to respond to the error log in the first time.
Posted on Sun, 20 Oct 2019 18:08:09 -0400 by LDM2009
Now for Java, Spring framework and Spring follow-up framework are popular, but everything starts from the foundation, so I will record the construction of the basic SSM framework.
Build Spring + Spring MVC + Mybatis, tool idea
If you are negligent, please point it out. Thank you.
KNOWLEDGE POINT: If you use jdk with versions 7 or less, Sprin ...
Posted on Thu, 10 Oct 2019 20:51:39 -0400 by DotSPF
Log4j2** is an evolutionary version of Log4j and provides many improvements available for Logback, while resolving some inherent problems in Logback architecture. And we will use kafka as log pipeline in log processing. However, the compatibility between kafka client dependency and Logback is not perfect. You can choose to eliminate de ...
Posted on Thu, 10 Oct 2019 01:46:59 -0400 by dannymm
At present, there are several common types of log frameworks on the market, and we often use slf4j. Its implementation is mainly log4j, log4j2 and logback. This paper only takes logback as the implementation of slf4j.
When we open the chart of the pom file, we can see that there are already logbac ...
Posted on Tue, 08 Oct 2019 16:22:27 -0400 by joquius
_slf4j is Simple Loging Facade For Java, that is, it is only a unified interface to provide log output for Java programs, not a specific log implementation scheme, just like JDBC, just a rule. So the separate slf4j is not working, and it must be matched with other specific log implementation schemes, such as Apache's org.apac ...
Posted on Mon, 07 Oct 2019 11:06:36 -0400 by jurasiprize
According to the figure below, let's build the corresponding spring boot aggregation project. Source: wx-spring boot in https://github.com/limingios/wxProgram.git
maven Main Project
Select Maven Project
Double-click on pom to add springboot's maven. Look at maven's warehouse. The last version of springboot (1) is 1.5.15 r ...
Posted on Mon, 07 Oct 2019 07:52:02 -0400 by Petty_Crim