Detailed explanation of spring boot validation parameter validation custom annotation rules and grouping validation
preface
Hibernate Validator is the reference implementation of Bean Validation. Hibernate Validator provides the implementation of all built-in constraints in JSR 303 specification. In addition, there are some additional constraints In daily development, Hibernate Validator is often used to verify the fields of bean s. Based on annotations, it ...
Added by rockobop on Fri, 21 Jan 2022 03:57:57 +0200
Distributed Dubbo+Zookeeper+SpringBoot
1. Distributed theory
1.1. What is a distributed system?
In the book "principles and models of distributed systems", there is the following definition: "a distributed system is a collection of several independent computers, which are like a single related system to users";Distributed system is a system composed of a group ...
Added by Xanza on Fri, 21 Jan 2022 01:16:54 +0200
Construction of SSM framework
Tool inner layer
Util: Tools
The Util layer is used to store tool classes. Small functions with high independence or code segments with high repeatability can be extracted into the Util layer
Data layer
pojo: normal java object
po: persistence layer, java objects mapped to tables in the database
vo: object of data transfer between busines ...
Added by gbrown on Fri, 21 Jan 2022 00:46:06 +0200
Spring Boot learning notes - Spring Boot integration Shiro
Spring Boot learning
Official website: https://spring.io/projects/spring-boot#overview
file: https://docs.spring.io/spring-boot/docs/2.2.6.RELEASE/reference/html/
Reference video: [crazy God says Java] the latest tutorial of SpringBoot, IDEA version, is easy to understand_ Beep beep beep_ bilibili
Project complete reference code: lexi ...
Added by Fazer on Thu, 20 Jan 2022 23:52:53 +0200
Section 3: recommended directory structure of web projects in SpringBoot
The SpringBoot 365 plan began to be updated. The plan knocked 365 SpringBoot cases to review and summarize to form a knowledge system. At present, 32 sections have been output. All source code is hosted on GitHub and Gitee.Here is the directory structure I created.
├── ./pom.xml
└── ./src
├── ./src/main
│ ├── ./src/main/java
│ │ ...
Added by dhe on Thu, 20 Jan 2022 23:21:23 +0200
SpringBoot manual build environment, Entity, Dao layer development, database model design
SpringBoot manual build environment, Entity, Dao layer development, database model design
If the plug-in spring assistant conflicts with our computer, we will not choose this plug-in,
Build your own environment and create your own project
1. Create project
(1) Select Maven project creation
(2) Custom name
(3) Create a finished look
2. Manu ...
Added by betman_kizo on Thu, 20 Jan 2022 17:55:00 +0200
SpringBoot asynchronous requests and calls
From: Micro reading https://www.weidianyuedu.com/content/0117397506434.html
1, Use of asynchronous requests in Spring Boot**
1. Asynchronous request and synchronous request
Synchronization request
Asynchronous request
Features: you can first release the threads and related resources allocated by the container to the request, reduce ...
Added by borris_uk on Thu, 20 Jan 2022 16:50:21 +0200
springboot+shardingsphere review the old and know the new
We also analyzed the integration of shardingsphere component with spring boot to realize database and table division. Sub database and sub table are mainly used to solve IO problems and slow query caused by massive data. ShardingSphere is an ecosystem composed of a set of open-source distributed database middleware solutions. It is composed of ...
Added by Ambush Commander on Wed, 19 Jan 2022 20:33:25 +0200
Redisson delay queue execution process source code analysis
preface
The previous article described the delay queue of JDK[ DelayQueue delay processing task record]In the actual distributed project, the delay queue of JDK is not used for the delay task. Because it is based on JVM memory storage and has no persistence operation, the task will be lost after the service is restarted.In the project, MQ dead ...
Added by Zero20two on Wed, 19 Jan 2022 16:26:04 +0200
Spring boot handles annotations for request parameters
preface
In springboot, there are several annotations for processing url request parameters, which are:
@PathVariable, @ RequestHeader, @ RequestParam, @ MatrixVariable, @ RequestBody, let's learn today.
text
1,@RequestParam
@RequestParam can be used to assign the specified request parameter to the formal parameter in the method. The source co ...
Added by socadmin on Wed, 19 Jan 2022 15:37:07 +0200