I found out that there is another service I forgot about completely, MyService2
which also injected a WebClient webClient
in its constructor and didn't specify a qualifier, which caused the error. For people who get confused about the same problem, be sure that there is no other class in your project which injects beans without qualifiers.