Closed as not planned
Description
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:
- Remove the type parameter at insertion point(s) like this:
@Autowired
List two;
- Add qualifier, for example:
@Autowired
@Qualifier("two")
List<String> goodWithQualifier;