mock feign Client in microservice for restful unit test

Today, I share a unit test example of restful interface in microservice, which mainly involves three aspects: mock of internal call, serialization and deserialization of interface DTO, and accelerating the execution of unit test cases with MockMvc. Unit testing requires that it does not rely on external services, so that it can be easily exec ...

Posted by laflair13 on Fri, 31 Dec 2021 18:22:58 +0100

Overview of springMVC's ability to download Excel tables

spring provides encapsulation classes for Excel DownloadsOrg.springframework.web.Servlet.view.document.AbstractExcelView, when implemented, simply implement a class that inherits AbstractExcelView, then override the buildExcelDocument(Map<String, Object> model,HSSFWorkbook workbook, HttpServletRequest request,HttpServletResponse respo ...

Posted by conspi on Wed, 08 Jul 2020 17:02:44 +0200

Kinematics and trajectory planning simulation of PUMA 560 based on Matlab

Kinematics analysis of PUMA560 Reference textbook: Cai Zixing, the third edition of Robotics PUMA560 modeling and simulation matlab code matlab Toolbox: robotics toolbox ① Download address http://petercorke.com/wordpress/toolboxes/robotics-toolbox Download the installation package (. zip) format, and copy the extracted folder &quot ...

Posted by wrong_move18 on Tue, 30 Jun 2020 08:33:44 +0200

openlayers6 map switching display (with source code download)

preface I have written a map switching effect of openlayers4 version before, but because it is written by encapsulating a layer of js code, many beginners seem to have a bit of difficulty, so this article rewrites a map switching effect, which is directly based on the latest version of openlayers6, in the form of pure html + js + css, witho ...

Posted by programmingjeff on Tue, 30 Jun 2020 07:19:43 +0200

Introduction to Cyclic Redundancy Check (CRC) algorithm written to embedded programmers

Preface CRC checks (cyclic redundancy checks) are the most commonly used checks in data communication.In embedded software development, CRC algorithm is often used to verify various data.Therefore, mastering basic CRC algorithms should be a basic skill for embedded programmers.However, few embedded pr ...

Posted by mispris006 on Sun, 28 Jun 2020 18:57:15 +0200

[SpringCloud Learning Notes 6] Getting Started and Using Config

Getting started with Config and using it 1. Introduction and Introduction to Config SpringCloud Config provides centralized external configuration support for microservices in the microservice architecture, and Configuration Server provides a centralized external configuration for all environments o ...

Posted by Cobby on Sat, 27 Jun 2020 02:42:32 +0200

Reconstruction of JAVA chat room -- a simple framework of CS mode

preface Since the beginning of data mining, I haven't written blog about technology for a long time. Recently, school JAVA The course design requires to realize a chat room. I think I wrote one last year, but I didn't realize some of the required functions, but looking at the original code, it seems that it's a little bit difficult to add func ...

Posted by samvelyano on Fri, 26 Jun 2020 04:17:25 +0200

Java data structure 54: Course Design of depth first traversal and breadth first traversal of graph data structure

54: depth first traversal and breadth first traversal of Graphs Time limit: 20000ms memory limit: 131072kB describe The information of vertex and edge of an undirected graph is given, and the depth first traversal sequence and the breadth first traversal sequence of the undirected graph are output. Starting from a vertex, if there are more t ...

Posted by saidbakr on Thu, 25 Jun 2020 10:49:29 +0200

HTML Final Design - Code Text

Pre-declaration I'm not really good. This web page design is also a regular web page which uses what I've learned to do. It can be used as a reference for freshmen in the future. The effect of commercial websites is certainly unparalleled. Expectations are too high to close. Please criticize me severe ...

Posted by julia k on Mon, 22 Jun 2020 18:06:09 +0200

day13 [nesting of student management system, Map and collection] lesson

1. Student management system (completed after class) 1.1 modification //modify private static void updateStudent(ArrayList<Student> list) { //Create keyboard entry object Scanner sc = new Scanner(System.in); System.out.println("Please enter the number of the studen ...

Posted by Tjk on Mon, 22 Jun 2020 09:51:09 +0200