Analysis of Mybatis plug-in
Preface
MyBatis provides a powerful extension function, that is, the plugins function of MyBatis. MyBatis allows you to intercept and call at a point during the execution of mapped statements. After interception, you can add some customized functions to existing methods, such as common page splitting functions. When you try to modify or rewrit ...
Posted by mayanktalwar1988 on Sat, 07 Dec 2019 10:25:58 -0800
Tomcat8 restricts specified domain name or IP access
Environmental Science: Tomcat8.0.53Objectives:Set to use the specified domain name or IP access
1. SET domain name access
1.1 open the server.xml file of the conf directory under Tomcat and find the following information
Modify Engineengine specifies the default host name to process the request, which is at least the same as the name at ...
Posted by weemee500 on Fri, 06 Dec 2019 20:26:20 -0800
Java bytecode 1-Agent easy to use
I. overview
Java Agent is introduced from JDK 1.5 and later. Its function is equivalent to an interceptor before your main function, that is, before executing the main function, execute the code in the Agent first.
The Agent code runs in the same JVM as your main method and is loaded by the same classloader and managed by the same security po ...
Posted by Azazeal on Fri, 06 Dec 2019 20:19:56 -0800
jdk1.8 Base64Util Illegal base64 character
Encoding and transcoding of jdk1.8 base64
Practical scenario
Recently, there is a need to download the image to the local according to its url, and the client cannot access the url and can only receive Base64 image code. Therefore, it is decided to use the base64 provided by jdk for encoding and transcoding storage.
Episode
Two tool classes a ...
Posted by justspiffy on Fri, 06 Dec 2019 05:35:25 -0800
Learning record remote call (HttpClient,RestTemplate, integrate custom connection pool, integrate SpringBoot test class)
Remote call
1. overview
One project wants to call the functionality of another
"User management system" calls "commodity management system",
We call it "remote call". At this time, "user management system" is equivalent to simulating "browser".
2. Call mode
RPC: the remote call mode of c ...
Posted by callmubashar on Fri, 06 Dec 2019 04:33:48 -0800
How to configure multiple JDK environment variables under Linux(CentOS7)
I. Linux version
2. Copy and paste multiple jdks, as follows
cp -R jdk1.7.0_80/ jdk1.7.0_80-2
cp -R jdk1.7.0_80/ jdk1.7.0_80-3
3. Configure multiple JDK environment variables
Add the following after the / etc/profile file
# JDK1 environment configuration
export JAVA_HOME=/usr/local/program/jdk1.7.0_80
export JRE_HOME=$JAVA_HOME/jre
export ...
Posted by lasse48 on Fri, 06 Dec 2019 02:21:17 -0800
Talk about rocketmq's register producer and unregister producer
order
This paper mainly studies register producer and unregister producer of rocketmq
MQClientInstance
rocketmq-client-4.5.2-sources.jar!/org/apache/rocketmq/client/impl/factory/MQClientInstance.java
public class MQClientInstance {
private final static long LOCK_TIMEOUT_MILLIS = 3000;
private final InternalLogger log = ClientLogger.getL ...
Posted by maexus on Thu, 05 Dec 2019 14:47:01 -0800
Integrating spring cloud cloud service architecture - commonservice Eureka project construction process
For the eureka project of HongHu cloud, we do the following construction. The whole construction process is very simple. I will record every step of the construction process, hoping to help you:
1. Create a maven project named particle common Eureka and inherit the particle common service. The specific pom.xml configuration file is as follows: ...
Posted by jandrews on Thu, 05 Dec 2019 11:00:35 -0800
Big data tutorial (8.2) wordcount program principle and code implementation / operation
Last blog shared mapreduce's programming ideas. In this section, the blogger will take his friends to understand the principle of wordcount program and the details of code implementation / operation. Through this section, we can have a general understanding of map reduce program. In fact, map and reduce programs in hadoop are only two of them. ...
Posted by jek on Thu, 05 Dec 2019 09:47:53 -0800
Building the Mesos cluster environment of "advanced" docker (24)
>Original article, welcome to reprint. Reprint please indicate: reprint from IT people's story meeting Thank you!>Original link address: Building the Mesos cluster environment of "advanced" docker (24)
This time, I will start to operate. First, I will install the MES. How to install the MES. Source code: https://github.com/lim ...
Posted by jacksonmj on Wed, 04 Dec 2019 22:13:26 -0800