SpringBoot integrated Log4j

(1) Add dependency in pom.xml <!--Remove springboot Default log--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> <exclusions> <exclusion> <groupId>org.spri ...

Posted on Sun, 09 Feb 2020 07:07:54 -0800 by Arc

SSM framework note 01: MyBatis

1, What is MyBatis (1) MyBatis overview MyBatis is an excellent persistence framework that supports normal SQL queries, stored procedures, and advanced mapping. MyBatis eliminates almost all manual setup of JDBC code and parameters and retrieval of result sets. MyBatis uses simple XML or annotations f ...

Posted on Sun, 19 Jan 2020 00:08:14 -0800 by dannymc1983

About the Use and Configuration of Log4Net

0. Introduction The Log4Net library is an implementation of the Apache log4j framework under the.NET platform and is open source and free of charge.It can output logs to different media in different formats and levels. Official address: http://logging.apache.org/log4net/index.html Log4Net open so ...

Posted on Fri, 17 Jan 2020 18:08:39 -0800 by coffejor

Basic use of 02mybatis

1. Create the resource folder config under the web directory, add the log4j.properties and SqlMapConfig.xml configuration files 2. Create log4j.properties under config as follows:   # Global logging configuration log4j.rootLogger=DEBUG, stdout # Console output... log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.ap ...

Posted on Thu, 16 Jan 2020 10:17:37 -0800 by mrjiggyhill

Status of Quartz task scheduling Job

Stateful job and stateless job @Use of PersistJobDataAfterExecution annotation A stateful job can be understood as holding some state information during multiple job calls, which is stored in the jobdatamap. The default stateless job creates a new jobdatamap every time it is called Add setter and getter ...

Posted on Wed, 15 Jan 2020 22:51:36 -0800 by accu

In a moment, the topic body of personal space design pattern goes deep into MyBatis source code to understand the adapter pattern of Java design pattern

What is adapter mode Definition: transform the interface of a system into another form, so that the interface that cannot be called directly can be called. Adapter pattern role division The adapter pattern involves three roles: 1. Adapter: the object or type to be adapted, equivalent to the plug ...

Posted on Tue, 14 Jan 2020 19:06:39 -0800 by ron8000

Log4j1.x seamless upgrade Log4j2.x & complete configuration of asynchronous rolling log xml

Article directory Log4j1 switch upgrade Log4j2 Dependency management (not Spring boot) Delete log4j1.x related jar s Add the following slf4j and log4j2 dependencies Set the listener and filter of log4j2 in web.xml (this step is not required for servlet3.0 and above) Dependency management (Spring b ...

Posted on Sun, 12 Jan 2020 06:19:29 -0800 by abie

Create and call WebService in Intellij IDEA

Article directory Create and call WebServices in Intellij IDEA Zero. Environmental preparation 1, Create WebServices 1. Create a new WebServices project 2. Program preparation 3. Dependency configuration 4. Operation test 5. generate wsdl 2, Call WebServices 1. Create client package 2. Generate j ...

Posted on Sat, 11 Jan 2020 22:40:48 -0800 by kosmidd

Bean's life cycle

Step 1: call the parameterless constructor to create an instance object. Step 2: call the parameter setter to inject value into the property. Step 3: if the Bean implements the BeanNameAware interface, the interface method setBeanName(String beanId) will be executed so that the Bean class can obtain its id name in the contain ...

Posted on Wed, 01 Jan 2020 18:20:36 -0800 by garry_224

JAVA implementation of QQ code scanning of third-party website login Demo

Because the company needs to use JAVA to realize QQ code scanning and login, after three days of hard work, it finally realizes this function. This is a Demo implemented by Servlet, which is easy to migrate into the project, not to mention much. Next, paste the code ConstantManager.java package com.qq.common; import java.net ...

Posted on Wed, 01 Jan 2020 04:39:09 -0800 by DangerousDave86