|
|
|
@ -581,7 +581,7 @@ public class AutowiredAnnotationBeanPostProcessor implements SmartInstantiationA |
|
|
|
} |
|
|
|
} |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (method.getParameterCount() == 0) { |
|
|
|
if (!method.getDeclaringClass().isRecord() && method.getParameterCount() == 0) { |
|
|
|
if (logger.isInfoEnabled()) { |
|
|
|
if (logger.isInfoEnabled()) { |
|
|
|
logger.info("Autowired annotation should only be used on methods with parameters: " + |
|
|
|
logger.info("Autowired annotation should only be used on methods with parameters: " + |
|
|
|
method); |
|
|
|
method); |
|
|
|
|