Spring boot Project Log print project version and build time

function When the spring boot project is started, the basic information of the project will be printed: service name, project version in pom, and the time when the jar package is built. It is convenient to check whether the service is updated to the correct version, and also to provide interface access Implementation steps ...

Posted by ajcrm125 on Sun, 10 Nov 2019 12:13:12 -0800

Summary of jmockit use

The company has high requirements for unit testing of developers, requiring branch coverage and row coverage to be more than 60%. Jmockit, a powerful mock framework, has been integrated in the project. It is imperative to learn to use this framework. From the first time I couldn't write at all, to being able to cope with work requirements, I st ...

Posted by torsoboy on Sat, 09 Nov 2019 01:51:47 -0800

java verifying the jar file downloaded by maven

Sometimes maven is really a hole! Sometimes it prompts invalid LOC header (bad signat ure signature), But sometimes we don't prompt anything, the engineering report is wrong, the situation is more moderate, we don't know that we have met several weird Today, I encountered the first line error of POM prompt. How can it be? No error is reporte ...

Posted by Slippy on Fri, 08 Nov 2019 11:12:47 -0800

Mybatis Reverse Engineering in Intellij Idea

Beginning A useful feature of Mybatis is reverse engineering, which can reverse-generate entity classes based on table structure to avoid manual errors.Most of the tutorials on the market are very old, mostly for mysql5. Here's my experience with mysql8. Introducing Engineering Using the maven package management tool, add the following configur ...

Posted by Jeller on Thu, 07 Nov 2019 06:30:34 -0800

Export SSM MySql data to Excel

Language: java Frame: SSM Project: maven Tool class: ExcelUtils.java Download address of tool class: https://download.csdn.net/download/ledzcl/10234291 Note: This download address is from the blog of dedzcl of CSDN (connection: https://blog.csdn.net/ledzcl/article/details/79222737) Only this memo 1. After downloading the tool class, dire ...

Posted by brianbehrens on Wed, 06 Nov 2019 09:13:54 -0800

ApiBoot Logging uses spring cloud openfeign to transmit link information

ApiBoot Logging can seamlessly integrate spring cloud to collect request logs. Currently, it supports RestTemplate and Openfeign. In this chapter, we will explain whether the request logs of a link that requests mutual calls between services can be collected by using Openfeign. Original blog address: http://blog.yuqiyu.com/apiboot-logging-using ...

Posted by exponder on Tue, 05 Nov 2019 23:12:44 -0800

I. zookeeper -- deployment and use

I. deploy zookeeper 1. Resource planning The server bigdata121/192.168.50.121,bigdata122/192.168.50.122,bigdata123/192.168.50.123 zookeeper version 3.4.10 System version centos7.2 2. Cluster deployment (1) install zk [root@bigdata121 modules]# cd /opt/modules/zookeeper-3.4.10 [root@bigdata121 zookeeper-3.4.10]# mkdir zkData [root@b ...

Posted by stndrdsnz on Sun, 03 Nov 2019 14:14:53 -0800

(VII) construction process of b2b2c social e-commerce spring cloud distributed microservice common service project of spring cloud

We will analyze the whole project of common service, record the whole construction process, and let more people to learn. First, before building the common service of spring cloud, we need to prepare the following technologies: Maven (project construction), Spring Boot, Spring Cloud, microservice concept, decentralization idea, distribution, ...

Posted by Schwalbach on Sun, 03 Nov 2019 12:19:23 -0800

Upload analysis in spring MVC

Let's talk about the upload of spring MVC today First of all, import should have dependency (or jar package)   Importing dependencies in maven looks much easier <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> ...

Posted by dgrinberg on Sat, 02 Nov 2019 17:12:06 -0700

How to implement paging operation in SMM framework

1. Import the PageHelper jar package, add the following dependencies to pom.xml under the parent project, and refresh it with Maven on the right (in idea) <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId ...

Posted by dawieharmse on Sat, 02 Nov 2019 03:36:19 -0700