mybatis notes (open)
Development environment jdk1.8 maven mysql8.0
1, guide package
2. Configure config (including write db.properties)
db.properties:
driver=com.mysql.cj.jdbc.Driver
url=jdbc:mysql://localhost:3306/mybatis?useSSL=false&serverTimezone=UTC
mybatis-config.xml:
<?xml version="1.0" encoding="UT ...
Posted by Sa177ir on Sun, 02 Feb 2020 10:15:51 -0800
Batch deployment of apache based on Saltstack
What is SaltStack
SaltStack management tool allows administrators to create a consistent management system for multiple operating systems
Preparation of experimental environment
Name
role
address
centos7-min
master
192.168.142.172
centos7-min2
client
192.168.142.110
Experimental steps
...
Posted by Adastra on Sun, 02 Feb 2020 07:32:55 -0800
Simple example of using Hystrix in Spring cloud (Spring cloud learning Note 6)
1, Analysis of current architecture problems
1.1 problem analysis
Our current architecture is shown in the figure below. Eureka is used for service discovery service registration, and Ribbon is used for load balancing. Now let's assume that if the service provider's response is very slow, the servic ...
Posted by srfdriver22 on Sun, 02 Feb 2020 05:01:29 -0800
Talk about artemis' individual knowledge
order
This paper mainly studies the individual knowledge of artemis
acknowledge
activemq-artemis-2.11.0/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessage.java
public class ActiveMQMessage implements javax.jms.Message {
//......
public void acknowledge() throws JMSException {
if (session != nul ...
Posted by dylan001 on Sat, 01 Feb 2020 06:06:02 -0800
Construction of eureka Registration Center
Is there a problem?
Briefly review what we have just written:
Service provider: a microservice that provides querying users according to their id.
Service consumer: a service caller who calls service provider remotely through RestTemplate.
What's the problem?
In consumer, we hard cod ...
Posted by Vorotaev on Sat, 01 Feb 2020 02:13:45 -0800
Redis Cultivation - cardinality statistics: HyperLogLog
There is no end to learning.
brief introduction
HyperLogLog is an advanced data structure in Redis. It is mainly used for cardinal Statistics (de duplication Statistics) of massive data (2 ^ 64 data can be counted). It is characterized by high speed and small space (12KB). But there are errors in th ...
Posted by scavok on Sat, 01 Feb 2020 00:06:32 -0800
Zong Laoshi self taught Jsoup
Introduction to Jsoup
jsoup is a Java HTML parser, which can directly parse a URL address and HTML text content. It provides a set of very labor-saving API, which can extract and operate data through DOM, CSS and jQuery like operation methods.
In the field of crawler web page collection, our main role is to use HttpClient to obtain the specific ...
Posted by aceconcepts on Fri, 31 Jan 2020 08:48:06 -0800
Nginx + Tomcat + HTTPS configuration
This article mainly introduces how to use nginx to configure tomcat and https ssl certificates.
Mode 1: directly modify the nginx.conf file under the conf file of nginx
You can directly copy the entire server node as follows, and change the certificate in the red box to your own.
#user nobody;
worker_processes 1;
...
Posted by dspeer on Fri, 31 Jan 2020 04:40:36 -0800
Spring Cloud -- routing gateway (Zuul)
Zuul introduction
Zuul's main functions are route forwarding and filter. Routing function is a part of microservices, such as / api/user forwarding to user service and / api/shop forwarding to shop service. Zuul default and Ribbon combine to realize the function of load balancing.
Build a Spring Cloud gateway
Create project ...
Posted by Shock_CNOP on Fri, 31 Jan 2020 02:18:48 -0800
Setting up Kafka-0.10.2 source reading environment and running Windows locally
Setting up Kafka-0.10.2 source reading environment and running Windows locally
Version information
2. Building Kafka Source Environment
3. Configuring Kafka Source Environment
Build a bin package
Version information
Kafka: 0.10.2,Scala: 2.10.6,Java: 1.8.0_221,IntelliJ IDEA: 2019.2,Zookeeper: 3.4 ...
Posted by crazydip on Thu, 30 Jan 2020 18:23:30 -0800