Reference link
SpringBoot01: Hello,World!
SpringBoot02: preliminary study on operation principle
SpringBoot03: yaml configuration injection
SpringBoot04: JSR303 data verification and multi environment switching
SpringBoot05: principle of automatic configuration
SpringBoot06: Custom starter
SpringBoot07: integrating JDBC
SpringBoot08: in ...
Posted by promovi on Thu, 12 May 2022 19:21:17 +0300
concept
The essence of springboot auto configuration is to automatically configure various bean s of spring. Then the application can use the bean directly through injection methods such as @Autowired.For example, automatically configure redisTemplate, jdbcTemplate and other bean s.
principle
1. Enable @EnableAutoConfiguration annotation
If you ...
Posted by jeffshead on Wed, 11 May 2022 21:42:43 +0300
Don't talk nonsense this time. Just throw dry goods. I've just learned single sign on. If you have any questions, please comment and discuss them together.
1, Single system login mechanism
1. http stateless protocol
web application adopts B/S architecture and http as communication protocol. Because http itself is a stateless protocol and doe ...
Posted by zahidraf on Wed, 11 May 2022 15:10:44 +0300
yaml configuration file in Spring Boot
Premise:
With the help of IntelliJ IDEA, Maven construction tool and SpringBoot 2.3.4.
If officials need to use Maven, please read the tutorial: Download and installation of Maven build tool
If officials need to use IDEA, please read the tutorial: IntelliJ IDEA
More dry goods:
Please refer to Java ...
Posted by Osorene on Wed, 11 May 2022 09:07:54 +0300
Background analysis
In the development of the project, whether it is the operation process of the underlying data logic, the processing process of business logic or the processing process of control logic, it is inevitable to encounter all kinds of predictable and unpredictable exceptions. Handling exceptions well can protect the system and gre ...
Posted by trevHCS on Wed, 11 May 2022 07:11:14 +0300
Preliminary Analysis of Integrating MyBatis
Overview
Mybatis is an excellent persistence layer framework, the bottom layer is based on JDBC to realize the interaction with the database. It is encapsulated and optimized on the basis of JDBC operation. With the help of flexible SQL customization, parameter and result set mapping, it better adapts ...
Posted by gateway69 on Tue, 10 May 2022 19:58:42 +0300
date: 2019-12-19 14:40:00
updated: 2019-12-19 15:10:00
Spring Boot + Druid multi data source binding
Version environment: Spring Boot 2.0.6
Reference document address:
https://blog.csdn.net/cllaure/article/details/81509303
1. Project structure
Several important documents are listed, and other documents are omitted
analysis
AnalysisApplication ...
Posted by roswell on Tue, 10 May 2022 09:47:48 +0300
catalogue
Create SpringBoot project
Create a new project
Create a new module
Prepare database
New database
New user table t_user
Insert test data
Integrate Mybatis
Add corresponding Jar package
code implementation
User
dao(UserMapper)
mapper.xml
UserService
UserService
UserController
application.properties
verification
Integr ...
Posted by eranwein on Tue, 10 May 2022 02:38:43 +0300