SpringBoot quick start

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

springboot2.0 auto configuration Automatic configuration

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

Single sign on principle and code implementation

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

Chapter 3 of crossing SpringBoot - detailed explanation of SpringBoot configuration | section 1 - spring boot yaml configuration file in spring boot

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

11. Exception handling in springboot project

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

05-Integrated implementation and principle analysis of MyBatis framework in SpringBoot project

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

[Spring Cloud] - Spring Security Practice - Basic concepts and practices

Basic Use The basic dependencies Spring security requires: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-start ...

Posted by cornix on Tue, 10 May 2022 19:41:14 +0300

Spring Boot + Druid multi data source binding

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

Springboot boot boot extension

1. Background 2. Extensible interface startup call sequence diagram 3.ApplicationContextInitializer 4.BeanDefinitionRegistryPostProcessor 5.BeanFactoryPostProcessor 6.InstantiationAwareBeanPostProcessor 7.SmartInstantiationAwareBeanPostProcessor 8.BeanFactoryAware 9.ApplicationContextAwareProcessor 10.BeanNameAware 11.@PostConstruct 12.Initial ...

Posted by BuzFortuna on Tue, 10 May 2022 05:53:27 +0300

SpringBoot+Mybatis integration - Final Version (integrated with Swagger)

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