Method of hot deployment without restarting application after mybatis dynamically updates xml files
Links to the original text: http://ju.outofmemory.cn/entry/356304
mybatis application program, because it is semi-automated sql, a large number of SQL is configurated in XML files, and in the process of developing programs, it is usually ...
Posted by karq on Thu, 03 Oct 2019 22:26:22 +0200
rocketmq Source Parsing Message Pull Processor II
Said ahead
Message Pull Processor
Source code analysis
Enter this method and find the mapping file according to offset, as described above at org. apache. rocketmq. store. MappedFileQueue # find MappedFileByOffset (long, boolean).
Return to this method and find the next mapping file based on offset, org ...
Posted by cwncool on Thu, 03 Oct 2019 01:26:58 +0200
The Use and Interpretation of morgan Log
morgan
// Introducing morgan package
var morgan = require('morgan')
Usage method
morgan(format,options)
The format: (string/function) printing mode can be the name of the predefined printing method, or the formatted string, or the callback method of the formatted entry.
Use predefined printing
...
Posted by MMeticulous on Wed, 02 Oct 2019 15:59:54 +0200
Spring Cloud Ribbon configuration
Ribbon Load Balancing
Ribbon is a load balancer released by Netflix. Spring Cloud Ribbon is a load balancing solution. It is based on Netflix Ribbon and is a load balancing client for controlling HTTP requests.
After registering Ribbon in the registry, Ribbon can automatically help service consumers c ...
Posted by nicky77uk1 on Wed, 02 Oct 2019 06:05:20 +0200
SpringBoot 2.1.X Integrates RocketMQ4.x
Actual operations:
1. Start nameser and broker
2. Adding packages
<properties>
<!--rocketmq Edition-->
<rocketmq.version>4.1.0-incubating</rocketmq.version>
</properties>
<!--Add to RocketMQ package -->
<dependency>
...
Posted by mr.echo on Tue, 01 Oct 2019 12:10:48 +0200
Template Engine Velocity Learning Series #set Directive
#set directive
# The set instruction is used to assign values to a variable or object.
Format: # set($var = value)
LHS is a variable. Do not use special characters such as English periods. The test found that # set ($user. name ='zhangsan') and # set (${age} = 18) failed in assignment.
RHS can be variables, string literals, numeric literals ...
Posted by buroy on Tue, 01 Oct 2019 11:17:30 +0200
JWeb Velocity Template Rendering
I've learned one template rendering technology before, Thymleaf. Today I'm going to talk about another template rendering technology, Velocity!
Knowledge Point Preview:
Encapsulating various properties of Velocity with Properties
Velocity Engine instantiates template engine objects based on Prope ...
Posted by varasurf on Tue, 01 Oct 2019 07:59:02 +0200
Spark and spark sreaming related test demo
Some related tests were carried out for spark: wordcount test for spark, feasible test for spark streaming, and test for Kafka message production.
6.1 spark word count test
The spark test case is used to test whether spark can be operated or not.
import org.apache.spark.{SparkConf, SparkContext}
object ...
Posted by Niko on Tue, 01 Oct 2019 06:50:31 +0200
Configuration of Spring MVC when intercepting Redis
Copy the company's project code from colleagues and try to run it. Because the project's architecture is springmvc, I mainly look at the file springmvc.xml, and see that the configuration file needs to connect to the local redis, so I learn by the way:
1. Download: github downloads files is really d ...
Posted by Elizabeth on Mon, 30 Sep 2019 14:43:23 +0200
Nutch2.1+Hbase+Solr to quickly build a crawler and search engine (fast, basically within 2 hours)
Note: This method is for quick experience or small data volume, not suitable for large data volume production environment.
Environmental preparation:
Centos7
Nutch2.2.1
JAVA1.8
ant1.9.14
HBase 0.90.4 (stand-alone version)
solr7.7
Relevant download address:
Links: https://pan.baidu.com/s/1Tut2CcKoJ9-G-HBq8zexMQ Extraction code: v75v
Start inst ...
Posted by MAXIEDECIMAL on Thu, 26 Sep 2019 07:49:34 +0200