The correct way of configuration file (2)

The correct way of configuration file (2) background From " Spring boot hits jar package to separate lib, and the configuration file is in the correct way >In, you can separate the configuration file from the jar package that depends on the third party, but it's a little bloated. Today, I will provide a way for you to refer to. Deployme ...

Posted on Mon, 06 Jan 2020 14:32:57 -0800 by tdeez173

Windows Platform Integration SpringBoot+KAFKA_u Environment Configuration Section

Project needs, need to integrate SpringBoot+KAFKA I looked and found that on Linux, zoomkeeper was installed before KAFKA, such as https://blog.csdn.net/zhangcongyi420/article/details/88674491 My CA, my machine can't move, and if we want to do it, we need to do a good job of a few virtual machines to get a big data platform environment together ...

Posted on Mon, 06 Jan 2020 13:31:57 -0800 by elflacodepr

(8) PHP dynamic expansion module installation

PHP dynamic expansion module installation Now our PHP has been installed. At this time, we found that there is a lack of a module. We can't recompile PHP. So this article mainly discusses how to install PHP module with dynamic expansion module See which modules are loaded in php /usr/local/php/bin/php -m Install a redis extension module of p ...

Posted on Sun, 05 Jan 2020 18:56:38 -0800 by jawinn

tar command, grep command, find command

tar command First, use the tar command to pack and compress the / etc directory in gzip format, and name the file etc.tar.gz: [root@localhost ~]# tar -czvf etc.tar.gz /etc Next, unzip the packed package file to the / root/etc directory (first use the mkdir command to create the / root/etc directory): [root@localhost ~]# tar ...

Posted on Sun, 05 Jan 2020 17:10:39 -0800 by jimiwa

Mysql Concurrency Ensures Data Consistency - Example

1. Background A problem occurred in a recent project and the update failed when a document was updated concurrently.For example: @Transactional(rollbackFor = Exception.class) public void update(Integer id){ //1. Query by id //2. Update the value of a field } The generated SQL would look like this: UPDATE table SET field = #{field,jdb ...

Posted on Sun, 05 Jan 2020 06:36:13 -0800 by riffy

Simplify CRUD with metadata

DataBaseMetaData object Connection.getDatabaseMetaData() getURL(): returns a String class object representing the URL of the database. getUserName(): returns the user name that connects to the current database management system. getDatabaseProductName(): returns the product name of the database. getDatabaseProductVersion(): ...

Posted on Sun, 05 Jan 2020 02:57:11 -0800 by Lauj

ElasticSearch version conflicts with Jar package

I built es2.4 locally before, and then used spring data es to create elastic search template for crud operation. These are all right. However, all the problems broke out after I connected to the company's es. Question 1: Spring data es does not support version 5. *, so errors will be reported naturally. Question 2: even if y ...

Posted on Sun, 05 Jan 2020 01:17:38 -0800 by vinod79

Steps for installing JDK1.8\tomcat\MySQL 5.7 in CentOS7 environment

Installing MySQL 5.7 in CentOS7 System Download: CentOS-7-x86_64-DVD-1804.iso http://mirrors.aliyun.com/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1804.iso Package download: 1.jdk-8u181-linux-x64.tar.gz http://download.oracle.com/otn-pub/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jdk-8u181-linux-x64.tar.gz?AuthParam=153 ...

Posted on Sat, 04 Jan 2020 11:19:24 -0800 by bluto374

[java programmer understands http] [6] practice -- several ways to simulate http request in Java

Several ways or solutions Jdk itself provides HttpURLConnection of java.net package HttpClient provided by Apache Spring Web provides RestTemplate All of the above can simulate the implementation of http request in java code. With the development of technology, it is more and more convenient. In the future, there may be more advanced and co ...

Posted on Fri, 03 Jan 2020 22:15:06 -0800 by Enlightened

Configuring nginx reverse agent tomcat under windows

Nginx download official address: http://nginx.org/en/download.html The directory structure after downloading and decompressing is as follows Common commands: nginx -v view nginx version Start nginx start nginx command nginx -s reload after modifying the configuration file nginx -s stop stop immediately Nginx-s quit stops ...

Posted on Fri, 03 Jan 2020 10:36:36 -0800 by hurricane