Spring boot learning solves the problem caused by the loss of annotations caused by the use of cglib proxy in aop in spring boot
When aop is used in spring boot, dynamic proxy will be used. If the annotation on the proxy class is obtained at this time, the acquisition will fail. For example, when using websocket, there will be problems if aop is used on the method. 1. Problem recurrence The following websocket class usesUTF-8...
Posted by brainardp on Wed, 29 Dec 2021 01:42:14 +1030
Why, isn't it that the interview always tests Spring's AOP? Do it!
Author: Xiao Fu Ge Blog: https://bugstack.cn Precipitate, share and grow, so that you and others can gain something! 😄 1, Foreword Why, your code is always stuck on the pigsty? 🎙 What to do? I know you're on the Internet. I don't know which big factory you're in. I know you're working overtimUTF-8...
Posted by the elegant on Wed, 19 Jan 2022 14:45:34 +1030
Tragedy caused by Null Spring Bean in proxy object
1. Background introduction This incident happened in the development environment of our company, and then other small partners summarized it. I looked at it and felt that there was something missing. Then I specially studied what was going on. The cause of the tragedy: There is a way to add @ bUTF-8...
Posted by Rictus on Tue, 22 Mar 2022 22:25:36 +1030
Java proxy (static, dynamic)
1, Static proxy The proxy class and the proxy class inherit the same interface. The proxy class needs to be used as a parameter in the proxy class case, so it is called to the proxy class; Disadvantages: each proxy class needs to write a corresponding proxy class; public class Target{ void run(UTF-8...
Posted by ariliquin on Sun, 17 Apr 2022 03:42:17 +0930