18. How spring cloud uses spring test for unit test

Love official account: java paradise In the last part, I learned how spring cloud integrates reids and borrowed the restful interface in the form of web for testing. Is there any other way to unit test the code written by spring boot and spring cloud? Answer: there must be. This article explains how to use spring boot starter test for unit tes ...

Posted by mmponline on Mon, 04 May 2020 20:05:03 -0700

The advanced RxJava of kotlin is RxJava2

RxJava advanced RxJava2 Recently, I used RxJava when I was working on a project. After learning about RxJava2, I decided to upgrade RxJava of the project to RxJava2. RxJava 2 is completely rewritten based on the reactive streams specification. The specification itself has evolved from RxJava, so you don't need to learn ...

Posted by matjaz on Mon, 04 May 2020 17:26:28 -0700

36. Spring boot configures Cors to solve cross domain requests

CORS (cross origin resource sharing) "cross domain resource sharing" is a W3C standard. It allows browsers to send Ajax requests to cross domain servers, breaking the resource limit that Ajax can only access the site. CORS is used in many places. JS payment of wechat payment is to send cross domain requests to wechat servers through ...

Posted by insane on Sat, 02 May 2020 19:32:13 -0700

Dockerfile used in work

Dockerfile customized in work java:8.0 jenkins-slave:8.0 nodejs:v10.15.0 maven:8.0 httpd:7.5 newman:5.0.0 sonar:6.7.4 The intranet is used by the company, so the installation packages used in some dockerfiles can be easily transferred to the intranet under the external network. The installation packages are place ...

Posted by Wayne Herbert on Wed, 29 Apr 2020 21:36:41 -0700

Java adds SmartArt graphics to PPT

SmartArt graphics is a visual representation of information and opinions. It has powerful functions of text to graphic and typesetting. This article shows you how to use Java code to create SmartArt graphics and customize the layout in your slides.   Using tool: free flame.presentation for Java (free version)   Jar file import method Method 1: ...

Posted by lonerunner on Wed, 29 Apr 2020 08:43:24 -0700

13. Spring cloud Alibaba Chapter 13, upgrade, service registration and configuration center Nacos

Spring cloud Alibaba Chapter 12, upgrade, service registration and configuration center Nacos 1, Why spring cloud Alibaba 1. Why With the micro service framework of spring cloud, why do you want to use the framework of spring cloud alibaba? The most important reason is spring Almost all components in the cloud use Netflix products, and ...

Posted by Liz_SA on Mon, 27 Apr 2020 20:09:31 -0700

Create Excel PivotTable in Java

Excel PivotTable has powerful data processing function, which can make the data in the table more intuitive. With Excel PivotTable, it is convenient for users to sort and filter all kinds of data quickly, and at the same time, it can meet the needs of users for different data summary. This article describes how to create and format an excel Piv ...

Posted by jtron85 on Mon, 27 Apr 2020 08:21:47 -0700

11. Chapter 11 of spring cloud, upgrading, service GateWay gateway, service configuration Config and service Bus bus

Chapter 10 of spring cloud, upgrading, service GateWay gateway, service configuration Config and service Bus bus 1, Service GateWay 1. Gateway overview Why does it exist: Different microservices usually have different network addresses, and external clients may need to call multiple microservices interfaces to fulfill the requirements of ...

Posted by AutomatikStudio on Thu, 23 Apr 2020 20:51:35 -0700

Mavenx learn to find the right way, get started quickly!

1,Maven Why should I learn this technology? In Java Web development, we need to use a large number of jar packages. We need to import them manually; How to make a thing automatically help me import and configure this jar package. So Maven was born! 1.1 Maven project architecture management tool At present, it is convenient for us to impor ...

Posted by PupChow on Tue, 21 Apr 2020 04:49:17 -0700

maven creates multi modular projects

1. Project scaffold reference https://www.cnblogs.com/fishyy/p/10313566.html 2. Add spring MVC dependency in parent pom.xml <?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:schemaLocation="http://maven.apache.org/POM/4.0.0 http: ...

Posted by Rongisnom on Fri, 17 Apr 2020 07:49:14 -0700