In SpringBoot 3.0.2 I created a bean (list of strings: List<String> variable;), but when I use it, the dependency injection inserts wrong values.

Code example: https://github.com/armogur/collection-demo

Run the code and observe the output, the line starts with two should have the same values that starts with goodWithQualifier.

Workaround: 1. Remove the type parameter at insertion point(s) like this:

@Autowired
List two;
  1. Add qualifier, for example:
@Autowired
@Qualifier("two")
List<String> goodWithQualifier;

Comment From: sbrannen

Hi @armogur,

Congratulations on opening your first issue for the Spring Framework! 👍

This is effectively a duplicate of #30022 and #16794.

In light of that, I am closing this issue.