SpringMvc (exception handling)

1. Built in exception handling parser Open dispatcherservlet properties File, where you can see some built-in APIs of SpringMvc. After this key is our exception handling parser. There are three default exception handling classes, as shown in the following example: org.springframework.web.servlet.HandlerExceptionResolver=org.springfra ...

Added by tabatsoy on Wed, 26 Jan 2022 07:59:33 +0200

RocketMQ4.9.1 source code analysis - (HA module) Master Slave Slave report and message processing

Then the last one RocketMQv4.9.1 source code analysis - HA Master-slave Master reading and writing processing After answering the questions related to Master, this article continues to look at the code around some questions related to Slave. For slave, we have the following doubts: How can slave obtain the routing information of the masterH ...

Added by john_bboy7 on Wed, 26 Jan 2022 07:44:04 +0200

Even some people think that Redis is only as simple as get set?!

Five data types and application scenarios of Redis Redis has five data types, namely, string,list,hash,set,zset(sort set). I think this point should be clear to all partners who have a little knowledge of redis. Next, let's discuss the application scenarios of these five data types. [get notes] string This type is believed to be the most fam ...

Added by kansaschuck on Wed, 26 Jan 2022 07:20:04 +0200

SpringBoot tutorial | SpringBoot integration with Mybatis

In the last article, we introduced the integration of SpringBoot with JdbcTemplate After a brief experience of the usage of the JdbcTemplate framework, today's content is more important. Let's introduce the steps of integrating Mybatis with SpringBoot. 1. Introduction to Mybatis MyBatis was originally an open source project iBATIS of apache. ...

Added by dieselmachine on Wed, 26 Jan 2022 06:55:28 +0200

Spring bean life cycle & circular dependency

1, bean lifecycle Let's review the most basic applications of spring <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www. ...

Added by madsosterby on Wed, 26 Jan 2022 04:48:29 +0200

Spring security source code learning

Based on the study of the source code, only part of the source code is discussed. The picture of Shang Silicon Valley teacher is used for reference, and the explanation of the source code is written in the code, It is divided into three parts: authentication process, permission access process + spring security request to share authentication in ...

Added by d-m on Tue, 25 Jan 2022 23:09:19 +0200

Spring AOP quick start

1, AOP configuration in Spring In Spring's AOP configuration, like IoC configuration, three types of configuration are supported. The first type: using XML configuration; The second type: using XML + annotation combination configuration; The third category: use pure annotation configuration. 2, XML configuration schema 1. Import dependen ...

Added by rationalrabbit on Tue, 25 Jan 2022 21:49:13 +0200

Get to know Spring | Spring integrates Mybatis

Integrate mybatis mybatis realizes the efficient management of database operations, while spring realizes the creation and use of objects in a new way. Integrating mybatis is to combine the data manipulation of mybatis with the control inversion of spring. Import related jar packages <?xml version="1.0" encoding="UTF-8"?> <pro ...

Added by stephenalistoun on Tue, 25 Jan 2022 21:12:38 +0200

Use of custom annotations in Spring projects

1. Preparation First, a simple springboot project is created here: The contents of each class are as follows: @Data @AllArgsConstructor @NoArgsConstructor public class User { private Integer id; private String name; } @Component public class UserDao { public User findUserById(Integer id) { if(id > 10) { ...

Added by insrtsnhere13 on Tue, 25 Jan 2022 19:57:13 +0200

[Android] basic use of zero foundation to skyrocketing | viewflipper

2.5.6 basic use of viewflipper Introduction to this section: This section brings you ViewFlipper, which is a multi page management control of Android and can be played automatically! Unlike ViewPager, ViewPager is page by page, while ViewFlipper is layer by layer. Like ViewPager, it is often used to realize the guide page after entering the ...

Added by ChrisMartino on Tue, 25 Jan 2022 16:06:06 +0200