Solve the problem that @Qualifier annotation fails when using lombok annotation @RequiredArgsConstructor

error message

 Although I have added comments to the code

 Solution: Create a new lombok.config configuration file in the root directory of the project

Add a new line of code:

# Solve the @Qualifier annotation failure problem when using lombok annotation @RequiredArgsConstructor
lombok.copyableAnnotations += org.springframework.beans.factory.annotation.Qualifier

Guess you like

Origin blog.csdn.net/weixin_38982591/article/details/126104337