From ee0a04e5824950704f84d96be59dd4eee69cf8e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Cs=C3=A1kv=C3=A1ri?= Date: Wed, 3 Jan 2024 14:45:48 +0100 Subject: [PATCH] Update autowired-qualifiers.adoc --- .../core/beans/annotation-config/autowired-qualifiers.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/framework-docs/modules/ROOT/pages/core/beans/annotation-config/autowired-qualifiers.adoc b/framework-docs/modules/ROOT/pages/core/beans/annotation-config/autowired-qualifiers.adoc index 946fb6a317b2..ff9cad8976bf 100644 --- a/framework-docs/modules/ROOT/pages/core/beans/annotation-config/autowired-qualifiers.adoc +++ b/framework-docs/modules/ROOT/pages/core/beans/annotation-config/autowired-qualifiers.adoc @@ -155,6 +155,8 @@ If there is no other resolution indicator (such as a qualifier or a primary mark for a non-unique dependency situation, Spring matches the injection point name (that is, the field name or parameter name) against the target bean names and chooses the same-named candidate, if any. + +Since version 6.1, this requires the `-parameters` Java compiler flag to be present. ==== That said, if you intend to express annotation-driven injection by name, do not