Source code learning of BeanFactoryPostProcessor and BeanPostProcessor of Spring hook
BeanFactoryPostProcessor and BeanPostProcessor are two interfaces that are exposed when initializing beans. They are similar to Aware (PS: for spring hook, please see) Detailed explanation of Spring hook method and hook interface This article also mainly studies the details of the specific hooks, so that we can be efficient in the actual ...
Posted by webhamster on Sun, 08 Mar 2020 22:36:17 -0700
Practice of distributed timed task scheduling framework
This article starts with WeChat official account of vivo Internet technology.Links: https://mp.weixin.qq.com/s/l4vuYpNRjKxQRkRTDhyg2QAuthor: Chen wangrong
Distributed task scheduling framework is almost a necessary tool for every large-scale application. This paper introduces the demand background and pain points of the use of task schedu ...
Posted by Wldrumstcs on Sun, 08 Mar 2020 20:32:21 -0700
[Spring Security + OAuth2 + JWT introduction to actual combat] 13. Third party QQ login and source code analysis
Source code analysis
Because spring security social is implemented based on social authentication filter, let's start with social authentication filter
When it comes to Filter, there must be a corresponding configuration class SocialAuthenticationFilter is no exception. Its corresponding configuration class is SpringSocialConfigurer. To make ...
Posted by raymie7 on Sun, 08 Mar 2020 05:20:00 -0700
Using hibernate validator as a data validation component in Spring
In the process of web development, it is often necessary to verify the data sent by the client to prevent the data from being illegal.
Spring MVC supports data validation as JSR303 standard, which is verified by annotation @NotNull @Max and other annotations on bean properties. JSR303 provides many annotation excuses, and spring MVC uses hibern ...
Posted by Liquid Fire on Sat, 07 Mar 2020 23:50:51 -0800
Java Bean Copy problem discovery
Introduction to antecedents
Java beans are used as containers to hold data for daily work. I found a problem in my work:
The business entity is to split an order. The order is divided into main part and detail part. There can be multiple details. After splitting, the order is reorganized to calculate ...
Posted by scuff on Sat, 07 Mar 2020 21:09:02 -0800
Hand in hand to teach you to implement a JSON parser!
1. background
JSON(JavaScript Object Notation) is a lightweight data exchange format. JSON has many advantages over XML, another data exchange format. For example, the readability is better and the space occupied is less.
In the field of web application development, thanks to the good support of JavaScript for JSON, JSON is more popular with de ...
Posted by symantec on Sat, 07 Mar 2020 21:03:43 -0800
Guess spring boot: dependency injection
Dependency injection
Citation and target
This is the second article in the spring boot series (Oh, I have written 10 articles, which is not easy).
In the previous article, we implemented the creation of bean, but it was just the creation, there was no real implementation of bean injection. So in today's article, we are going to implement automa ...
Posted by SilverFoxDesign on Sat, 07 Mar 2020 20:43:40 -0800
SpringBoot entry notes
Article directory
Spring boot and microservices
SpringBoot
Micro service
Spring boot environment construction
Official document generation
idea integration
Introduction to the initial environment
Spring boot principle
Automatic configuration
YML file
grammar
Property mapping between configuratio ...
Posted by karikamiya on Sat, 07 Mar 2020 20:02:37 -0800
What do you know about spring's dependency injection?
A previous article: The difference between dependency lookup and dependency injection , this article talks about dependency lookup and dependency injection as the means to implement IOC. We use more dependency injection in our actual work. How much do you know about the specific patterns and types of ...
Posted by DannyM on Sat, 07 Mar 2020 18:40:34 -0800
Spring boot integrates the addition, deletion, modification and query operations of Mybatis on a single table
I. objectives
Spring boot integrates the addition, deletion, modification and query operations of Mybatis on a single table
2, Development tools and project environment
IDE: IntelliJ IDEA 2019.3
SQL: Navicat for MySQL
3, Basic environment configuration
Create database: demodb
Create data table and insert data
DROP TABLE IF EXISTS t_empl ...
Posted by wstran on Sat, 07 Mar 2020 08:05:38 -0800