Chapter one: springboot uses the ConfigurationProperties annotation to read custom properties (podcast code)
Refer to the previous section for some codes, where @ Value is used to read values
1. @ Value read data
@Value supports literal quantity, Spring EL expression (#), dollar sign ($), compared with@ ConfigurationProperties , he needs a ...
Posted on Mon, 06 Apr 2020 11:12:59 -0400 by orangehairedboy
Thank you for your reference- http://bjbsair.com/2020-04-01/tech-info/18394.html
A back-end interface is roughly divided into four parts: interface address (url), interface request method (get, post, etc.), request data (request), response data (response). How to build these parts? Each company has different requirements. There is no &q ...
Posted on Sun, 05 Apr 2020 22:50:21 -0400 by ransingin
1. Using Redis user login analysis
2. Use tool class to generate verification code
Store randomly generated verification code in redis
Use for loop to generate randomly, and use StringBuilder to save 4 strings
Use HttpServletResponse to respond pictures to the browser
import org.springf ...
Posted on Sun, 29 Mar 2020 10:11:51 -0400 by gregambrose
1. Different scope and specifications
filter is defined by servlet specification and can only be used in web program
Interceptors can be used in web programs, application programs and swing programs. They are within the Spring container and supported by the Spring framework
2. Different trigger times
Order: Filter > servlet > ...
Posted on Fri, 27 Mar 2020 12:31:36 -0400 by CJLeah
Chapter Six of SpringCloud, Upgrade, Upgrade Overview and Rest Micro-Service Case Building
1. Changes after Springcloud upgrade
Each of the original frameworks has changed since the springcloud upgrade was found.
2. Rest Micro-Service Construction Case Project
Make a microservice generic case with the order module, Consumer consumer [or ...
Posted on Wed, 25 Mar 2020 02:12:12 -0400 by davitz38
In projects, there are often scenarios that query data according to time intervals. For example, if the time span is large, the execution efficiency of the corresponding sql will be significantly reduced. Therefore, the time interval can be cut into several small-scale time slices, which can not only improve the performance of sql, but also per ...
Posted on Sun, 22 Mar 2020 10:11:00 -0400 by Gestahr
Previously acquired tokens were generated based on the Spring Security OAuth2 default configuration. Spring Security allows us to customize token configuration, such as different client_id s corresponding to different tokens, token validity time, token storage policy, etc.
Custom token configuration
Let authentication ser ...
Posted on Fri, 20 Mar 2020 23:52:18 -0400 by Ang3l0fDeath
JDK 14 was officially released on March 17, 2020, but there are still some new features that deserve attention.If you find my writing helpful, I hope to get your attention!
1. Pattern matching of instanceof:
Instanceof is an instance in java that checks whether an object reference is of a given Type type and returns a Boolean value.Before Java ...
Posted on Wed, 18 Mar 2020 21:02:54 -0400 by angelkay73
Introduction to Spring-IOC and AOP
1. Import Spring dependency
2. Use of IOC
2.1 profile implementation dependency injection
2.1.2 preparation of configuration file
2.2 annotation implementation dependency injection
2.2.1 open comment
2.2.2 annotation sca ...
Posted on Sun, 15 Mar 2020 00:58:37 -0400 by ORiGIN
Then the previous vue front-end project has been successfully built. After some basic page functions have been realized, now we need to build a basic background to realize the front and back-end connectivity. Here are some key points and perception records in the whole connectivity process:
The background project construction of springboot is r ...
Posted on Thu, 05 Mar 2020 07:11:07 -0500 by DeathfireD