Aggregation and Dependency of Projects
When a project is multi-module, how to build multiple modules at once instead of executing Maven commands separately under multiple modules.
1.1 Parent-Child Structure
<!--Parent Module netsales-poss In packaging Must be pom-->
<!--Parent Modu ...
Posted by Illusion on Thu, 25 Jun 2020 18:31:40 +0200
1, Publish message to redis
1. Create a new springboot project
Create a new redis queue for the springboot project.
2. Introduce dependency
The introduction of related dependencies, in which lombok is used, requires the installation of lombok plug-ins.
<?xml version="1.0" encoding="UTF-8"?>
Posted by sixdollarshirt on Thu, 18 Jun 2020 12:28:50 +0200
Interpretation of spring boot project architecture
SpringBoot startup process
Spring application running
Here we use IDE to create projects. When the scaffold is completed, I'm going to get anoth ...
Posted by Dilbert137 on Tue, 16 Jun 2020 09:28:26 +0200
Recently, in writing projects, I met the place where I would like to call Alipay payment (website management website payment, APP user payment, APP user withdrawals, that is, single transfer to users, refund). I've studied for a long time, and all of them are connected. Now I'll share my c ...
Posted by allaboutthekick on Fri, 05 Jun 2020 06:07:56 +0200
Solve the problem of cross domain access of spring MVC web project
1. Cross origin cross domain annotation springboot has its own cross domain annotation, which can be placed on the RestController's class or method. It can also customize those domain names, which can be cross domain and very flexible @CrossOrigin / / by default @ CrossOrigin a ...
Posted by d.shankar on Sat, 25 Apr 2020 16:29:18 +0200
Simple Factory Mode
Simple factory mode, also known as static factory method, is a creation mode.In simple factory mode, instances of different classes can be returned depending on the parameters passed.The Simple Factory pattern defines a class specifically for creating instances of other classes that share a common parent.
Posted by darthmahon on Thu, 16 Apr 2020 08:53:53 +0200
Because of playing the play framework before, I don't know much about springboot; I have many doubts: ① How can custom annotations work in springboot ② How does the annotation plug-in like Lombok change the generated code
Today, I found an online post called "Lombok", and I understood my doubts ...
Posted by mjurmann on Sun, 12 Apr 2020 06:03:40 +0200
Today record the implementation of verification code, hope to help you!
First, let's look at the effect of the implementation:
The implementation of this verification code does not use too many plug-ins. If you don't speak much, you can directly use the code. You can take it.
The org.apache.commons.lang3.RandomUtils tool class is used in the ...
Posted by mubashir on Thu, 09 Apr 2020 17:41:52 +0200
Chapter one: SpringBoot/Spring uses @ Value for attribute binding (podcast code for wisdom spreading)
The ConfigurationProperties annotation will read the properties from the global configuration file by default. When there are many properties, the main configuration file(application.yml, application.properties) will be bloated, so it is ne ...
Posted by Nimbuz on Mon, 06 Apr 2020 19:01:17 +0200
2.4.1 what is a white list
Problem: all requests are blocked and do not meet the actual requirements. (some requests do not need to be intercepted)
White list: used to store the request path that does not need to be blocked
Step 1: modify the gateway yml file, and configure the path that does not need to be b ...
Posted by gijs25 on Fri, 03 Apr 2020 07:00:38 +0200