(1) Add dependency in pom.xml
<!--Remove springboot Default log-->
Posted on Sun, 09 Feb 2020 07:07:54 -0800 by Arc
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
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
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
# Console output...
Posted on Thu, 16 Jan 2020 10:17:37 -0800 by mrjiggyhill
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
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 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 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
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
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
import java.net ...
Posted on Wed, 01 Jan 2020 04:39:09 -0800 by DangerousDave86