As long as you log a lot, locate a BUG shuttle

The complete code covered in this article: GITEE Or visit: https://gitee.com/topanda/spring-boot-security-quickly-start/tree/jpanda-spring-boot-security-api/src/main/java/cn/jpanda/demo/manager/configuration/log It is hard to avoid bugs when you write too much code. As a programmer who has been walking all year, it is not a rare thing to talk ...

Added by deejay1111 on Wed, 10 Jun 2020 06:50:17 +0300

spring session + redis to realize distributed session

introduction In general, in order to solve a single point of failure, web applications in the production environment will be deployed on multiple platforms, so there will be a problem. When we log in, we will store the login information in the session. If we rely on the session in the native web con ...

Added by mouloud2001 on Tue, 09 Jun 2020 05:20:25 +0300

Automatic assembly of Spring source

Introduction Autowired annotations are often used to inject dependent bean s during Spring development, which is also one of the hot issues in interviews.Today let's delve into the underlying implementation of automatic injection.First, let's start with the previous example, as follows: @RestController public class TestController { @Au ...

Added by Japher on Mon, 08 Jun 2020 03:25:54 +0300

The parsing process of spring xml file's default label

It all starts with kneeling, silver goalkeeper Now all the articles about spring will be reorganized later. Here is just a record. Until I'm familiar with ioc, I'll string up the previous articles. Parsing xml tags starts with the parseDefaultElement(Element ele, BeanDefinitionParserDelegate delegate) ...

Added by tridean34 on Sat, 06 Jun 2020 10:33:01 +0300

Spring obtains single instance process

After reading this article, you will get In the getBean method, Spring handles aliases and the name of factoryBean How Spring gets beans from multi-level cache according to beanName How Spring deals with getting common beans and factorybeans from users introduction from Initialization of Spring container In, we learned how Spring convert ...

Added by SirEddie on Sat, 06 Jun 2020 08:47:18 +0300

[JVM Story] The Birth of a Java Byte Code File

Long text in thousands of words, completely fictitious.   (1)   An intern came to the group. After Li Dafang finished, he felt his level was average, but he still stayed. Why?Let's guess.Li Da-fat also enlightened himself in his heart. Students should not ask too much, as long as they are willing to go up and slowly.Just call it Xiao Bai.Xi ...

Added by Kingw on Fri, 05 Jun 2020 03:51:28 +0300

SpringSecurity - Authentication + Authorization Code Implementation

Authentication + Authorization Code Implementation Spring Security is a security framework based on Spring AOP and Servlet filters.It provides a comprehensive security solution while handling authentication and authorization at the Web request and method call levels. Previously, I blogged about the theory of authentication and authorization ...

Added by john_nyc on Thu, 04 Jun 2020 04:08:57 +0300

Cao Gong said Mini Dubbo -- analyze the source code of eureka client and try to register our service provider with eureka server

preface eureka is an important component of the spring cloud Netflix technology system, which mainly completes the function of service registration and discovery. Now there is a problem, the rpc service we wrote by ourselves, if we want to ensure enough openness and function perfection, we must support various registration centers. At present, ...

Added by Zoud on Mon, 01 Jun 2020 12:55:50 +0300

Introduce mybatis-plus to report an Invalid bound statement error. Move your finger to change one place

error Mybatis-Plus (MP) is an enhancement tool for mybatis. On the basis of mybatis, only enhancements are made without changes, which simplifies the development efficiency.This is to help us encapsulate some simple curd methods that can be called directly without rewriting these simple sql statements, just like JPA. A new project was created t ...

Added by zenix on Thu, 28 May 2020 06:02:40 +0300

Java Concurrent dry goods: let you understand the producer consumer problem

Source network, only for learning, if there is infringement, please contact delete. Producer consumer model is a very classic model of multithreading concurrent cooperation. Understanding the producer consumer problem can deepen our understanding of concurrent programming. The so-called producer consumer problem, in fact, mainly contains two ...

Added by duall on Tue, 26 May 2020 13:41:25 +0300