Open mercyblitz opened 1 year ago
针对 com.acme.biz.api.interfaces.UserRegistrationService 接口实现类 - com.acme.biz.web.service.InMemoryUserRegistrationService,redefine registerUser 方法,增加日志功能,如某个 User 被注册
针对 com.acme.biz.web.mvc.controller.UserRegistrationController 来实现以上功能
https://github.com/liqi19950722/Work/commit/17d99c5c1705073deb79c9bfbc4bf22e62dc4bce 在拦截Controller方法的时候,用subclass()会导致方法上的注解信息丢失,我改用了rebase()方法就能保留@RequestBody注解信息
@RequestBody
https://github.com/Kurok1/java-training-camp/commit/6ab2a886dcbf4025420326e99ea487b053135492
https://github.com/karidyang/java-training-camp/tree/master/homework-8
https://github.com/Tanxyz/java-training-camp-homework
要求
针对 com.acme.biz.api.interfaces.UserRegistrationService 接口实现类 - com.acme.biz.web.service.InMemoryUserRegistrationService,redefine registerUser 方法,增加日志功能,如某个 User 被注册
进阶实现
针对 com.acme.biz.web.mvc.controller.UserRegistrationController 来实现以上功能