learning target
Learn about common MQ products
Understand RabbitMQ's 5 message model
1. Problems with search and commodity services
The original data of the commodity is stored in the database, and additions, deletions, modifications, and searches are completed in the database.
The data source of the search service is the index database. If ...
Posted by andynightingale on Mon, 23 May 2022 06:25:09 +0300
1. Create a completed completable future
The simplest example is to create a completed completable future using a predefined result, which we usually use at the beginning of the calculation.
static void completedFutureExample() {
CompletableFuture cf = CompletableFuture.completedFuture("message");
assertTrue(cf.isDone());
assertE ...
Posted by Haktar on Fri, 20 May 2022 13:17:24 +0300
java flow control
User Interaction Scanner
There is no interaction between programs and humans in the basic grammar learned earlier. But Java provides me with such a utility class, we can get the user's input. java.util.Scanner is a new feature of Java5, I can get user input through Scanner class Basic syntax: Scanner s = new Scanner (Syet ...
Posted by cbolson on Wed, 18 May 2022 01:22:25 +0300
preparation in advance
1. Create a spring web project in POM Adding dependencies to XML
<!-- Front end template--> <dependency> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<!-- task scheduling -->
& ...
Posted by jraede on Tue, 17 May 2022 20:28:27 +0300
catalogue
I Maven engineering test
1. Test overview
2.Junit usage steps
3.Junit result judgment
4.@Before,@After
II Rely on conflict mediation
1. Shortest path first principle
2. Principle of first declaration
3. Exclude dependencies and lock versions
I Maven engineering test
1. Test overview
Testing is to evaluate the written ...
Posted by woza_uk on Sun, 15 May 2022 04:58:16 +0300
1. Introduction to mybatis
1.1 what is MyBatis?
MyBatis official website
MyBatis is an excellent persistence layer framework that supports common SQL queries, stored procedures and advanced mapping. MyBatis eliminates almost all the manual setting of JDBC code and parameters and the retrieval of result sets. MyBatis uses simple XML or ann ...
abstract keyword
1. abstract: abstract 2. abstract can be used to modify structures: classes and methods 3. Abstract modifier class: abstract class >This class cannot be instantiated >There must be a constructor in the abstract class, which is convenient for calling when subclass instantiation (involving the whole process of subclass ...
Posted by dkruythoff on Fri, 06 May 2022 06:19:41 +0300
Original text from SecIN community - Author: tkswifty
Relevant background
in the actual business development, SQL interaction is often an indispensable item in the business system. Mybatis, Hibernate and SpringData JPA are provided in Java to meet the needs of database interaction. However, for various reasons, when dealing with the i ...
Posted by ajpasetti on Thu, 05 May 2022 11:03:17 +0300
cause
Today, when I was paddling in the company, I accidentally saw an article about the function of sqlmap OS shell. This article describes the specific process of OS shell in detail, but the author finally overturned when implementing the custom shell
So there is this articleAs the author said, this is indeed a bit superfluous. Ho ...
Posted by wilded1 on Wed, 04 May 2022 04:09:00 +0300
preface
In the process of web development, as long as it is related to data, there will generally be date data. In java, there are also date data types; Before JDK8 version, date type was used, but there are many problems in using Date object, such as a series of problems such as not on-site safety, direct operation of the original object, ...
Posted by gufmn on Tue, 03 May 2022 02:02:10 +0300