How to make Spring Security "mind your own business"
Remember two ways to let Spring Security "mind your own business".Problems encounteredAn application provides an external Rest interface. The access authentication of the interface is controlled by Spring Security OAuth2, and the token form is JWT. For some reasons, the interface with a specific path prefix (assumed to be / custom /) ...
Posted by scept1c on Mon, 03 Jan 2022 21:29:09 +0100
SpringMVC Quick Start [Basic Summary]
SpringMVC
brief introduction
What is Spring MVC?
Spring MVC is part of the Spring Framework, or Spring Framework. It is a lightweight Web framework based on Java to implement MVC. Official Documents
Features of Spring MVC?
Lightweight, easy to learn.An efficient, request-response-based MVC framework.Good compatibility with Spring and seaml ...
Posted by morphy on Mon, 03 Jan 2022 21:23:58 +0100
Spring OAuth2 Development Guide: OAuth2 password pattern development example
Spring OAuth2 Development Guide (II): OAuth2 password pattern development example
1, Opening
This is the second article in the Spring OAuth2 Development Guide series. It introduces the development details of OAuth2 password mode through code examples. There are many and messy code demonstrations about OAuth2 development on the network, wh ...
Posted by Pellefant on Mon, 03 Jan 2022 20:49:38 +0100
Chapter 7 Spring Security
The project is advanced to build a safe and efficient enterprise service
Spring Security
The bottom layer of Spring Security intercepts the whole request by using filter (many special login, permission, exit...) and Java EE specification. The control of permission is relatively advanced. If the permission is not available, you can't get to ...
Posted by donbueck on Mon, 03 Jan 2022 17:10:46 +0100
Elegant solution of Spring dependency injection
I am Xiao Hei, a programmer who "lingers" on the Internet
Pay attention to the official account of the same name [Xiao Hei Java], more dry cargo content is served first, and more occasional lottery offers.
Running water doesn't compete first. It's important to talk
In this article, I'll show you how to use Project Lombok as a b ...
Posted by iriedodge on Mon, 03 Jan 2022 16:49:11 +0100
Spring Boot is a way to exclude automatic configuration, which is very worth seeing!!!
The automatic configuration provided by Spring Boot is very powerful. In some cases, the automatic configuration function may not meet our needs. We need to customize the configuration. At this time, we need to exclude / disable the automatic configuration of some classes of Spring Boot.
For example, data sources and e-mail provide automatic c ...
Posted by shwanky on Mon, 03 Jan 2022 15:43:55 +0100
Actual combat: how to integrate JWT in SpringBoot to realize login registration
JWT can be understood as an encrypted string, which consists of three parts: header, payload and signature
It is used by the header and payload encrypted by base64 The JWT string is formed by connecting the strings, then encrypting them with salt secret combination through the encryption method declared in the header, and then forming the JWT ...
Posted by msaz87 on Mon, 03 Jan 2022 15:28:45 +0100
Spring Boot realizes read-write separation. No one else can't?
Step 1: configure multiple data sources
I won't introduce the basics of Spring Boot. I recommend this practical tutorial: github.com/javastacks/...
First, we configure two data sources in SpringBoot. The second data source is ro datasource:
spring:
datasource:
jdbc-url: jdbc:mysql://localhost/test
username: rw
password: rw_ ...
Posted by mustang on Mon, 03 Jan 2022 15:06:15 +0100
spring source code analysis - beanfactoryprocessor
spring series
preface
Beanfactoryprocessor is not only a hook interface of BeanFactory, but also an extension. It is precisely because of this interface that spring loads beans in a variety of ways. I believe most developers may be unfamiliar with this interface. After all, this interface belongs to an underlying extension. If you are ...
Posted by mediabob on Mon, 03 Jan 2022 14:10:05 +0100
How Tomcat loads Spring, Spring MVC and Servlet
summary
Do you know how Tomcat loads Spring and Spring MVC? Today we'll figure out the process (record the most critical things)
It will involve large and small knowledge, including design patterns during loading, Servlet knowledge, etc. you must gain something after rea ...
Posted by Otiose Dodge on Mon, 03 Jan 2022 12:15:19 +0100