We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 018ba92 commit b92515bCopy full SHA for b92515b
spring-aop/src/main/java/org/springframework/aop/framework/ProxyFactoryBean.java
@@ -254,7 +254,7 @@ public Object getObject() throws BeansException {
254
return getSingletonInstance();
255
}
256
else {
257
- if (this.targetName == null) {
+ if (this.targetName == null && logger.isInfoEnabled()) {
258
logger.info("Using non-singleton proxies with singleton targets is often undesirable. " +
259
"Enable prototype proxies by setting the 'targetName' property.");
260
0 commit comments