springboot+junit5+surefire test report

1. Framework: springboot + mybatis + mysql + junit5 2. Project code 2.1 pom 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:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" ...

Posted on Wed, 13 Oct 2021 15:19:39 -0400 by RyanW

SpringBoot day 22 - JUnit unit test

SpringBoot - JUnit unit test In this section, you learn about spring boot using Junit for unit testing. 1. JUnit overview 1.1 introduction to JUnit JUnit 5 is the next generation of JUnit. The goal is to create an up-to-date foundation for developer-side testing on the JVM. This includes focusing on Java 8 and above, as well as enabling ...

Posted on Tue, 12 Oct 2021 16:58:54 -0400 by Allan-

Call WebService interface

Last level we talked about generating maven project. In this episode, we talk about generating JavaBeans and String loaded Bean tool classes. 1. Add test class dependency <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> ...

Posted on Sun, 28 Jun 2020 01:59:41 -0400 by duncanmaclean

Sensitive word filtering: AOP + annotation + DFA algorithm

preface In terms of sensitive word filtering, we should say that it's big or small. Generally legal users will not have a big problem, but some illegal users deliberately engage in your business, it is not very friendly! After all, now the network is so developed, what matters to the Internet, the im ...

Posted on Fri, 26 Jun 2020 21:22:22 -0400 by jasonbullard

Web05 mybatis advanced (using annotation development and SQL to build objects)

MyBatis advanced Today, I'd like to share with you the following Annotation implementation single table development Annotation for multi table operation SQL construction statement of MyBatis Here are some key words of MyBatis annotation development Annotation implementation single table developme ...

Posted on Sun, 21 Jun 2020 04:30:55 -0400 by dad00

Redis getting started - Jedis operating redis

This article mainly introduces the use of redis command line, the software version used: Java 1.8.0_191,Redis 5.0.8,Jedis 3.3.0. 1. Introduce dependency <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>3.3.0</version> </dependency> 2. Basic opera ...

Posted on Fri, 19 Jun 2020 22:43:17 -0400 by bsamson

Java Foundation Part 8 learning notes and collections

1. Knowledge point architecture of collection 1) , knowledge structure system diagram 2) , collection overview 3) . architecture 4) , tools 5) , Description: the bottom structure here is a little bit, and there are special chapters in the later period 2. Overview of collection 1) , notes /* *1. Ove ...

Posted on Sat, 13 Jun 2020 06:13:58 -0400 by deeppak

Message type - normal message

General message RocketMQ provides three ways to send ordinary messages: reliable synchronous sending, reliable asynchronous sending and one-way sending. Reliable synchronous transmission Synchronous sending refers to the communication mode in which the sender sends data and sends the next packet a ...

Posted on Sat, 13 Jun 2020 00:38:15 -0400 by spicey

Article title: encapsulation of Retrofit2+Rxjava2 network request framework

Based on the networking framework of Retrofit and Rxjava2, the builder mode constructs RestClient, encapsulates the request method, supports configuration loading animation, and chain call. Unified request to get the original data returned by the background. Let's take a look at the network request sample code Chain c ...

Posted on Fri, 22 May 2020 12:23:59 -0400 by EPCtech

Problems encountered in springboot+mybatisplus junit test

When spring boot integrates with mybatisplus to add database, junit startup reports the following error java.lang.NoClassDefFoundError: org/springframework/core/annotation/MergedAnnotations$SearchStrategy at org.springframework.test.context.support.TestPropertySourceUtils.buildMergedTestPropertySources(TestPropertySourceUtils.java:74) ...

Posted on Tue, 19 May 2020 10:29:07 -0400 by LexHammer