Microprojects: Step by step, take you to the beginning of SpringBoot

Today, let's use JPA to do paging projects and explain them. If you are a new friend, please return to the last one.Last article: Microprojects (I) maven integration Import the following dependencies into the dependencies dependencies dependencies of the pom file <dependency> <groupId>org.springframework.boot< ...

Posted by mwilson2 on Tue, 08 Oct 2019 11:48:13 -0700

Elastic Search Java REST Advanced Client Query Template

Elastic Search Java REST Advanced Client Inline Template ElasticSearch 7.2.0 1. Inline template 2. Create registration template 3. Execute registration template 4. Create Client 5.maven configuration - pom file   1. Inline template /** * Inline template */ public static void inlineTempl ...

Posted by mizz key_me on Mon, 07 Oct 2019 21:05:55 -0700

maven Replacement Central Warehouse - Aliyun

The connection speed is too slow when visiting Maven warehouse in China. The following is how to replace the central warehouse with the central warehouse in Aliyun. First, uniform modification of warehouse address You can directly modify the set. xml file in the Mavenconf folder, or create a set. xml file in the. m2 folder. There is a mirrors n ...

Posted by dusty on Mon, 07 Oct 2019 11:47:37 -0700

Using poi to manipulate Excel in java

Poi introduction Usually used to process Excel data, you can also process word, ppt readable and writable.   Component correspondence in Excel file and poi An Excel file corresponds to a Workbook object A Workbook can have multiple Sheet objects A Sheet object consists of multiple Row objects ...

Posted by Ken2k7 on Mon, 07 Oct 2019 04:14:27 -0700

IDEA integrates docker plug-in to implement one-key deployment of SpringBook project

Virtual machine CentOS 7.X, docker 1.3.X, Win10 Idea 2018.1 The Docker plug-in has been downloaded by default Idea The default virtual machine docker has jdk installed Open docker configuration file, open port 2375 [root@xuan ~]# vim /usr/lib/systemd/system/docker.service Add ExecStart=/usr/bin/dock ...

Posted by abakash on Mon, 07 Oct 2019 02:27:18 -0700

Arthas Views Time-consuming on Each Node on the Method Call Path

File: https://alibaba.github.io/arthas/ githut: https://github.com/alibaba/arthas/blob/master/site/src/site/sphinx/index.md install express setup wget https://alibaba.github.io/arthas/arthas-boot.jar && java -jar arthas-boot.jar Select the application java process: $ $ java -jar arthas-boot.jar * [1]: 35542 [2]: 71560 arthas-demo.jar ...

Posted by tarlejh on Sun, 06 Oct 2019 03:07:45 -0700

Docker installs Gitlab and Gitlab-Runner and implements the project CICD

This article describes in detail how to install Gitlab, Gitlab-Runner and implement CICD of the project using Docker in Linux system. Installation of Gitlab 1. Pull up the mirror and start it Since port 80 of the server may be occupied, we have changed to other ports to start it here. docker run -d -p 2443:443 -p 5678:80 -p 2222:22 --name gitla ...

Posted by Skoalbasher on Sun, 06 Oct 2019 00:33:03 -0700

spring cloud eureka service discovery registration

Environment description: spring boot 2.0 + JDK1.8 Step 1: Build the eureka server, create a maven project, or directly idea or https://start.spring.io/ Quick creation pom.xml file <?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 ...

Posted by timgetback on Sat, 05 Oct 2019 23:55:00 -0700

springboot returns json and xml

Summary: Return data in json, xml format      @XmlRootElement <dependency> <groupId>com.fasterxml.jackson.dataformat</groupId> <artifactId>jackson-dataformat-xml</artifactId> </dependency>   SpringBoot returns json and xml https://www.jianshu.com/p/231b5ff ...

Posted by zamzon on Sat, 05 Oct 2019 21:58:30 -0700

Eureka Actual Warfare-5 [Enabling https]

The last one is mainly about opening http basic authentication. From a security point of view, based on base64 encoding, it is easy to be cracked after being caught, and it is very unsafe in the public network. This article discusses how to open https in eureka server and eureka client.   Public Dependent pom Files <parent> ...

Posted by LightningSt on Sat, 05 Oct 2019 16:37:57 -0700