Java – can multiple @ qualifier annotations be used in spring?
•
Java
I have a set of beans that feature two properties They are basically serializers for different classes and purposes
For example, there may be an order serializer for local logs, an order serializer for recording web service calls, a customer serializer for tracking URLs, and a customer serializer for tracking URLs
That's why I want to use two @ qualifier annotations:
Unfortunately, the compiler complains about repeated comments in this case Is there a solution or alternative solution to this problem?
Solution
@H_ 301_ 15@@Qualifier("order-url")
And name your component order URL separately
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码