Sometimes in a project, there are situations where you need to connect two databases. This article will talk about how to use dual data sources (or multiple data sources) in combination with Spring and Mybatis.
The key to implementing multiple data sources in this article is the AbstractRoutingDataSource provided by Spri ...
Posted on Thu, 04 Jun 2020 11:09:39 -0700 by smallflower
1. Flume overview
Flume is a distributed system for massive log collection, aggregation and transmission. Flume's main function is to read the data of the server's local disk in real time and write the data to HDFS.
Agent: send data from Source to destination in the form of events. Including Source, ...
Posted on Thu, 04 Jun 2020 10:59:09 -0700 by jamz310
1. Single file upload interface declaration:
@Part MultipartBody.Part img
File upload must be accompanied by @Multipart comment parameter with @Part comment
RequestBody photoRequestBody ...
Posted on Thu, 04 Jun 2020 10:39:33 -0700 by mmarif4u
In this article, I want to remember the problems of using Alpine image in JEECG deployment.
MAINTAINER liumiao email@example.com
RUN apk update \
&& apk add openjdk8-jre-base \
&& touch /etc/init.d/start.sh \
&& chmod +x /e ...
Posted on Thu, 04 Jun 2020 10:22:59 -0700 by Onle
Suppose that the binary tree is stored in a binary linked list storage structure, and a program is written to output the value of the k-th node in the sequence of traversal, assuming that K is not greater than the total node tree (the type of node data field is char type).
Using t ...
Posted on Thu, 04 Jun 2020 10:03:59 -0700 by Plug-in
Ansible common modules and cases
File module: create a directory or file for the target host, and give permissions
- name: create a file
file: 'path=/root/aaa.txt state=touch mode=0755 owner=foo group=foo'
copy module: file transfer from ansible to target
- name: copy a file
copy: 'remote_src=no src=roles/testbiox/foo.sh ...
Posted on Thu, 04 Jun 2020 09:22:46 -0700 by impulse()
Teaching whiteboard is an indispensable function of online education platform. Its function is just like the blackboard of offline classroom, through which lecturers can operate blackboard writing, courseware display and so on. Let's take the online education platform development of iOS version as an example to understand how the board function ...
Posted on Thu, 04 Jun 2020 09:08:24 -0700 by baw
leetcode394 string decoding
This problem is intuitively associated with stack processing. My idea is:
Traverse the string and stack it from left to right. If you can merge, merge it first and then add it to the stackFor example, 232[asc]33[ass]
First, put 232, asc, 33, ass into a string and add it to ...
Posted on Thu, 04 Jun 2020 09:01:18 -0700 by gunslinger008
1. The preserved software is used to manage and monitor the status of each service node in LVS cluster system in the early stage;
2. In the later stage, VRRP is added to realize high availability. Therefore, it can provide high availability for lvs load balancing and other services..
Experiment image: Centos 8.1.1911
Sketch: (to be filled)
Posted on Thu, 04 Jun 2020 09:01:04 -0700 by hailam
Filtering is to find the desired element from the set of matching elements. (from a bunch of elements)1. first() and last()Syntax: $(selector).first()Gets the first element in the matching element collection. This method does not accept any parameters.Syntax: $(selector).last()Gets the last element in the matching element collection. This meth ...
Posted on Thu, 04 Jun 2020 09:01:53 -0700 by knox203