Annotation based assembly
Common annotations in Spring are as follows.
1)@Component
This annotation can be used to describe beans in Spring, but it is a generalized concept that represents only one component (Bean) and can act at any level. When using, you only need to mark the annotation on the corresponding class.
...
Posted by yogadt on Fri, 17 Sep 2021 21:08:03 -0700
Resolution of Spring Boot 2.0.0 Upgrade to 2.4.1 Circular Dependency
Catalog
Resolution of Spring Boot 2.0.0 Upgrade to 2.4.1 Circular Dependency
describe
Analysis
First Cause
Second Cause
Third-tier Reason
Layer 4 Reasons
Layer Five Reasons
Layer Six Reasons
Layer 7 Reasons
Final cause
Solution
Comparing Relevant Versions
Spring Boot 2.0.0.release + Druid 1.19
Spring Boot 2.4.1 + Druid 1.19
Spri ...
Posted by undecided name 01 on Fri, 17 Sep 2021 21:02:47 -0700
[springboot] read the yml configuration file with the static method, which can be read dynamically according to different environments
There are many ways to read configuration files in springboot, which I will not describe here;
Background: there is a redis tool class in the common of the project. Because many modules use redisconfig, you don't want to write a redisconfig in each module, and the tool class is used. It is used in the way of static loading, but if you use the ...
Posted by Nat on Fri, 17 Sep 2021 13:24:26 -0700
Spring security < five > authentication -- account / email / mobile phone number + password
Spring security < < V > authentication – account / email / mobile number + password
Basic environment of local project
environmenteditionjdk1.8.0_201maven3.6.0Spring-boot2.3.3.RELEASE
1. Introduction
spring security is a framework providing authentication, authorization and preventing common attacks. It has first-class sup ...
Posted by jlive on Thu, 16 Sep 2021 15:58:05 -0700
Overall process of springboot Dubbo addition, deletion, modification and query
springboot-dubbo
First, create a simple maven project It stores entity classes and service classes
Entity class to inherit Serializable
Entity classes can introduce lombok and rely on an @ Data annotation
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
< ...
Posted by cpjok on Wed, 15 Sep 2021 16:26:34 -0700
Shiro--SpringBoot--jwt -- use / usage / instance / example
Original website:
Other web sites
Shiro instance series
Shiro -- instance -- springboot_ CSDN blogShiro -- instance -- springboot -- Shiro redis_ CSDN blogShiro -- instance -- springboot -- JWT_ CSDN blog (this article)
Reference website
shiro+jwt+springboot integration_ q89757316 blog - CSDN blogSuper detailed! 4 hours to develop ...
Posted by eshban on Wed, 15 Sep 2021 15:04:28 -0700
Preliminary study on operation principle
Preliminary study on principle
pom.xml
Parent dependency
It mainly depends on a parent project, which mainly manages the resource filtering and plug-ins of the project!
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.5.RELE ...
Posted by adwfun on Tue, 14 Sep 2021 14:15:44 -0700
Spring Boot data access
Spring Boot data access
Spring Boot data access overview
Spring Data is an open source framework provided by spring to simplify database access and support cloud services. It is an umbrella project, which contains a large number of data access solutions for relational and non relational databases. Its design purpose is to enable us to use var ...
Posted by Jassal on Mon, 13 Sep 2021 18:25:27 -0700
SA token annotation authentication: elegant separation of authentication and business code!
SA token introduction:
SA token is a lightweight Java permission authentication framework, which mainly solves a series of permission related problems, such as login authentication, permission authentication, Session session, single sign on, OAuth2.0, micro service gateway authentication and so on.
Today, we mainly introduce annotation authen ...
Posted by johnnyblaze1980 on Sun, 12 Sep 2021 20:41:41 -0700
Crazy SpringCloud Notes 05 (Zuul and Config)
9.Zull Routing Gateway
Summary
What is zuul?
Zull contains two main functions: routing the request (for jumping) and filtering:
(The routing function is responsible for forwarding external requests to specific micro-service instances, which is the basis for achieving a unified entry for external access, while the filter function is re ...
Posted by andco on Sun, 12 Sep 2021 12:23:54 -0700