Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

作业八:基于 Byte Buddy 实现 Spring WebMVC Controller 拦截日志 #4

Open
mercyblitz opened this issue Dec 3, 2022 · 4 comments

Comments

@mercyblitz
Copy link
Owner

要求

针对 com.acme.biz.api.interfaces.UserRegistrationService 接口实现类 - com.acme.biz.web.service.InMemoryUserRegistrationService,redefine registerUser 方法,增加日志功能,如某个 User 被注册

进阶实现

针对 com.acme.biz.web.mvc.controller.UserRegistrationController 来实现以上功能

@liqi19950722
Copy link

liqi19950722 commented Dec 4, 2022

liqi19950722/Work@17d99c5
在拦截Controller方法的时候,用subclass()会导致方法上的注解信息丢失,我改用了rebase()方法就能保留@RequestBody注解信息

@Kurok1
Copy link
Contributor

Kurok1 commented Dec 4, 2022

Kurok1@6ab2a88

@karidyang
Copy link

@Tanxyz
Copy link

Tanxyz commented Jan 11, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants