Saltstack user guide 03 configuration management

1. Host planning Matters needing attention If the configuration file of master or minion is modified, the corresponding service must be restarted. 2. Understand YAML Specific address https://docs.saltstack.com/en/latest/topics/yaml/index.html YAML: three board axe 1. Indent: 2 spaces, cannot use Tab 2. Colon: key: value note that there are ...

Posted on Mon, 02 Dec 2019 10:06:33 -0500 by geowulf

mybatis automatically fills in the time field

For the created ﹣ on and updated ﹣ on entities, it is unnecessary for developers to intervene, because it is enough to explain the use scenario, that is, when inserting and updating data, record the current time. For mybatis, it can be realized through interceptors. Remember that the methods implemented in jpa are mainly realized through jpa ...

Posted on Mon, 02 Dec 2019 03:07:49 -0500 by karenruth

How does Mybatis work

Objectives: Clarify the process of mybatis loading and parsing mapper file; Clarify the process of executing SQL by mybatis. When analyzing the source code of mybatis loading configuration, the previous article mentioned org.apache.ibatis.builder.xml.xmlconfigbuilder ා parseconfiguration method, and now continues to analyze mapperElement meth ...

Posted on Sun, 01 Dec 2019 23:30:46 -0500 by eon201

Implementation of database operation read-write separation based on Spring and Mybatis interceptor

First, configure the master-slave synchronization of the database: The last article wrote: https://www.cnblogs.com/xuyiqing/p/10647133.html   Why should we separate reading from writing? In general, most of the read operations of Web applications are much more than the write operations In order to improve efficiency, we can consider the se ...

Posted on Sun, 01 Dec 2019 20:09:31 -0500 by ajsuk

Initialization of JVM class loader class

core-java.jpg For a static field, only the class that defines the field directly can be initialized. When a class is initializing, all its parent classes must be initialized. class MParent{ public static final String mString = "hello jvm"; static { System.out.println("call MParent static block"); } } pub ...

Posted on Sun, 01 Dec 2019 18:34:14 -0500 by johnbrayn

Perfect compilation and installation of Apache2.4.38+apr-1.6.5+apr-util.1.61

First of all, the environment is ready for installation [root@minion-1 ~]#yum install -y libxml2-devel pcre-devel openssl-devel expat-devel && yum -y groupinstall "Development Tools" apche compilation requires two components: APR and APR util. If the link fails because of the latest package, click this website directory to find o ...

Posted on Sun, 01 Dec 2019 17:48:50 -0500 by Cereals

[SpringBoot integration] 1. Integrating kafka

brief introduction About kafka. Before you install the kafka service again. Reference documents: spring for kafka documentation spring boot for kafka document 1. Dependency package <!-- kafka --> <dependency> <groupId>org.springframework.kafka</groupId> <artifactId>spring-kafka</art ...

Posted on Sun, 01 Dec 2019 08:52:59 -0500 by adrian28uk

hadoop learning and compiling source code

Custom Catalog title is written here 1. Preparatory work 2.jar package installation 3. Compile source code 1. Preparatory work CentOS CentOS can connect to the Internet, Linux virtual machine ping www.baidu.com It is smooth.Note: compile with root role to reduce the problem of folder permission jar package preparatio ...

Posted on Sun, 01 Dec 2019 01:09:48 -0500 by sgiandhu

Spring cloud simple build service provider and consumer (rest+ribbon) (Finchley version)

Create a service provider (eureka client) 1. Create an order service as a service provider Create a new module order service pom.xml is as follows <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sch ...

Posted on Sat, 30 Nov 2019 21:15:37 -0500 by Kerry Kobashi

Spring bootredissqlspring boot caching redis caching sql statements

pom.xml introduces the jar package, as follows <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> Modify the project startup class, add the annotation @ EnableCaching, and ena ...

Posted on Sat, 30 Nov 2019 20:54:29 -0500 by J.Daniels