Quick start springboot web page development filter and interceptor of springboot controller
filter
◼ Filter s can dynamically intercept requests and responses. ◼ Application scenario: filter sensitive words, prevent SQL injection, set character encoding, and perform URL level Other permissions, access control, compression response information, etc.
Filter programming step 1: create a filter class
◼ Write a Java class to imp ...
Added by jarvis on Tue, 08 Feb 2022 15:19:27 +0200
spring. Wonderful use of factories
phenomenon
When reading the source code related to spring boot, you often see spring In the factories file, the class names related to AutoConfiguration are written, so a question arises: "why write the spring.factories file when the automatically configured class has been annotated with @ Configuration?
Anyone who has used Spring B ...
Added by leeming on Tue, 08 Feb 2022 12:48:13 +0200
Spring security -- custom data source
Spring security (II) -- custom data source
preface
This note records the customization of the authentication data source of spring security, that is, the user name and password of user authentication are not modified in the configuration file (this kind of authentication is to put the data source into memory and use the data source in memory ...
Added by NuMan on Tue, 08 Feb 2022 11:53:53 +0200
Development and actual combat sharing of Java blockchain voting system
Development and actual combat sharing of Java blockchain voting system
catalogue
1, System introduction
The blockchain voting system developed based on the Java language and the popular Springboot+Mybatis framework on the market can be used for the voting platform in enterprise groups, government agencies and organizational alliances. Th ...
Added by rv20 on Tue, 08 Feb 2022 06:43:47 +0200
Function and use of OpenFeign
1. Steps for using openfeign
1.1 what is openfeign? What's the difference between him and Feign?
Feign is a declarative Web Service client. Its appearance makes it easy to develop Web Service clients. To use feign, you only need to create an interface and add corresponding annotations, such as FeignClient annotation. There are notes for f ...
Added by lee_umney on Tue, 08 Feb 2022 02:44:34 +0200
The timing task is not hard coded, but dynamic timing is brushed
preface
Traditional timers are hard coded. But sometimes business needs constant adjustment
Problem description
We have developed a function of setting the alarm clock. This function must be developed by timer. But there is a problem. The timing is dynamic. So how do we achieve it? Please keep looking
brief introduction
Timer is really a b ...
Added by zzlong on Mon, 07 Feb 2022 22:08:19 +0200
Spring Security quick start
1 Introduction to spring security
Spring Security is a security framework that can provide declarative security access control solutions for spring based enterprise applications. As it is a member of the spring ecosystem, it is constantly revised and upgraded along with the whole spring ecosystem. It is very simple to add Spring Security ...
Added by kelesis on Mon, 07 Feb 2022 21:15:01 +0200
Interpretation of the principle of Spring Security
1 integrated SpringBoot
1.1 introduction to spring boot
Spring Boot is a rapid development framework of spring. It is designed based on Spring 4.0. Using Spring Boot development can avoid some cumbersome engineering construction and configuration. At the same time, it integrates a large number of common frameworks to quickly import depe ...
Added by phonydream on Mon, 07 Feb 2022 20:58:41 +0200
springboot+duubo+nacos build
1, nacos server download and installation
1. Download
https://github.com/alibaba/nacos/tags
2. Installation
I'll demonstrate the stand-alone version on windows. Download it here zip file
cmd startup.cmd -m standalone
Access interface: http://localhost:8848/nacos
The default account password is nacos
At this time, it indicates ...
Added by fredcool on Mon, 07 Feb 2022 12:10:30 +0200
Special customization of SpringMvc in SpringBoot
There are many @ beans in the automatic configuration classes of SpringMvc. SpringBoot automatically configures some default properties of SpringMvc according to these classes. We can override this @ Bean to customize some of our own special things. Auto configuration class name: webmvcoautoconfiguration In most cases, SpringBoot marks m ...
Added by desmond_ckl on Mon, 07 Feb 2022 05:20:16 +0200