spring boot notes sorted out all night (very complete)
SpringBoot overview
SpringBoot provides a way to use Spring quickly. Based on the idea that convention is better than configuration, developers do not have to switch thinking between configuration and logical business, and devote themselves to the coding of logical business, which greatly improves the efficiency of development
SpringBoot feat ...
Posted by Gier NL on Sun, 12 Sep 2021 00:49:39 -0700
JSR303 - Data Verification & unified response data format
1. Introduction to jsr303
It is applicable to data verification on the server sideJava provides a standard framework for Bean data validity verification Spring MVC supports the verification framework of JSR 303 standard JSR 303 specifies the verification rules by marking the verification annotation on the Bean attributeSpring itsel ...
Posted by mancroft on Thu, 09 Sep 2021 21:57:23 -0700
Spring boot integrates swagger gracefully
Import dependency
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.9.2</version>
</dependency>
<dependency>
<groupId>io.springfox ...
Posted by Michael Lasky on Thu, 09 Sep 2021 15:06:36 -0700
Comment function implementation
9.8 comment function realization and sorting Here, take the implementation of the comment list of the article page as an example
1, Business analysis
Simulated station B comment service
1.1 business logic
When accessing an article, try to get the comment list of the article.According to the article comment configuration (these config ...
Posted by kooza on Wed, 08 Sep 2021 16:12:37 -0700
SpringBoot-web Development-Static Resource Rules and Customization
Learn sprinboot links
Static Resource Access
1. Static Resource Directories and Prefixes
As long as the static resource is in the class path: /static/public/resources/META-INF/resources Access: Static resources can be accessed by the current project root path/ +static resource name
Reason: All requests come in and go to Controller firs ...
Posted by Josepheuan on Wed, 08 Sep 2021 14:47:55 -0700
Performance comparison between shallow and deep copies
Preface
In daily development, object conversion is frequently used, which can be roughly divided into shallow copy and deep copy. If subdivided, deep copy can be subdivided into several types. This paper makes a series of tests based on several mainstream deep copy methods, and explores the principles and scenarios.
Readers are welcome to d ...
Posted by wilorichie on Wed, 08 Sep 2021 10:36:46 -0700
spring gateway failure retry mechanism
Global routing provides a failure retry mechanism for all routing services. Global routing, that is, default filters
# Open route:
spring.cloud.gateway.default-filters[0].name=Retry
#According to the default parameters, only the GET request is retried, and the parameters are modified to support POST
spring.cloud.gateway.default-filters[0].arg ...
Posted by jdsflash on Tue, 07 Sep 2021 16:40:26 -0700
SSM primary integration (book management system)
1. Create a new MAVEN project and import the required dependent and static resource files
<dependencies>
<!--junit rely on-->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
</dependency&g ...
Posted by ntohky14 on Tue, 07 Sep 2021 11:38:12 -0700
SpringBoot integrates Spring Data JPA to access MySQL
Preface
JPA was introduced to simplify the development of persistence layers and integrate ORM technology, ending the situation where ORM frameworks such as Hibernate, TopLink, JDO and so on operate independently.JPA is developed on the basis of the existing ORM framework and is easy to use and highly scalable.Overall, JPA includes the fol ...
Posted by turbolemon on Mon, 06 Sep 2021 13:35:45 -0700
Leyou Mall (15) -- order service
Leyou Mall (15) – order service
1, Order settlement page
Page Jump
At the bottom of the shopping cart page, there is a button to settle:
When you click settlement, you should jump to the order settlement page, that is, getOrderInfo.html
To view the settlement button of the shopping cart:
As you can see, the address is cor ...
Posted by akluch on Sun, 05 Sep 2021 18:17:30 -0700