spring boot: use redis+lua to limit the frequency of sending SMS verification codes (spring boot 2.3.2)

1. Why limit the sending frequency of SMS verification codes? 1, SMS verification code Each SMS has cost constraints, Certainly can not be brushed the random hair of the interface And the interface is brushed will affect the user's experience, Affect the normal access of the server, So even with the protection of graphic verification codes, etc ...

Posted by shashiku on Wed, 25 May 2022 21:42:39 +0300

SpringBoot 02 notes - SpringBoot configuration yml

Learn about bootstrapping to quickly create applications Reference code: E:\Javawinner\fastspringboot 1. Select spring initializr - > next - > set group and java version – > next to add dependency Various annotations @RestController Equivalent to@Controller @ResponseBody @RequestMapping("/hello") @RequestMapping(value="/hello ...

Posted by chetan1 on Wed, 25 May 2022 20:10:47 +0300

Didn't you say you would Aop?

Early in the morning, Xiao Wang hurried to me and said: brother Zhou, I want to ask about the function of logging. Because a project of the company needs to be connected with other platforms, we need to provide them with a set of interfaces. Yesterday, I assigned Xiao Wang to record the interface log. The following is my main conversation with ...

Posted by Emperio on Wed, 25 May 2022 18:24:15 +0300

[CRM learning and development Day1 of SSM framework project customer relationship management system]

1.1 home page function demand When users visit the project home page, they first enter the login page. Timing & flow IndexController @Controller public class IndexController { /* Theoretically, assign a url to the Controller method: http://127.0.0.1:8080/crm/ For simplicity, the protocol: / / ip:port / application ...

Posted by goldfiles on Wed, 25 May 2022 00:07:31 +0300

Tear spring and spring MVC parent-child containers by hand

1, Background Spring and spring MVC have a parent-child container relationship, and it is precisely because of this that the problem of package scanning often occurs. Here we analyze and understand the parent-child container relationship between spring and spring MVC, and give the official recommended method of package scanning in spring and sp ...

Posted by piyushsharmajec on Tue, 24 May 2022 03:28:59 +0300

Spring boot: single file upload / multiple file upload / multiple file fields upload in the form (spring boot 2.3.2)

1, How to realize the correspondence between the description and the file when there are multiple file fields in the form? 1. Description and document correspondence In the file upload page, if there are multiple file fields and multiple corresponding file descriptions, How do documents and instructions correspond? We can add the same number to ...

Posted by clodius on Mon, 23 May 2022 06:10:09 +0300

YML explanation - springboot

catalogue preface Definition of YML Syntax introduction of YML (YAML) Basic grammar Translation character About the name of the key About placeholders springboot uses the yml variable @Value usage @ConfigurationProperties use   preface Usually, our springboot project often uses YML configuration files. After using them for a period ...

Posted by phpuser_2000 on Sat, 21 May 2022 23:52:33 +0300

MyBatis Junior Actual 2: Additions, Deletions, and Reviews

Welcome to my GitHub https://github.com/zq2599/blog_demos Content: A summary of all original articles, including Java, Docker, Kubernetes, DevOPS, etc. This is the second article in the MyBatis Beginner Actual Warfare series. We know how to integrate MyBatis in SpringBoot from the previous article. We will practice basic skills together: adding ...

Posted by Ekate on Sat, 21 May 2022 20:05:01 +0300

Beijing Taobao project day02

1.SpringBoot program enhancement 1.1 attribute assignment Note: if the configuration information is written into the code in the form of code, the coupling of the program is high and it is inconvenient to expand Requirement: whether the attribute of the object can be assigned dynamically package com.jt.controller; import org.springframework.we ...

Posted by tnewton on Sat, 21 May 2022 18:13:23 +0300

spring boot data verification @ Valid @Validated

Check field // Check field @Valid @Validated yes@Valid One package of is Spring The provided verification mechanism is used.@Valid No grouping function is provided Configure global exception @Slf4j @ControllerAdvice public class GlobalExHandler { @ExceptionHandler(Exception.class) @ResponseBody public String error(Exception e) ...

Posted by cjbeck71081 on Sat, 21 May 2022 07:26:50 +0300