diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/config/MethodInvokingFactoryBean.java b/spring-beans/src/main/java/org/springframework/beans/factory/config/MethodInvokingFactoryBean.java index fe3f25b47b..1c3c3d9489 100644 --- a/spring-beans/src/main/java/org/springframework/beans/factory/config/MethodInvokingFactoryBean.java +++ b/spring-beans/src/main/java/org/springframework/beans/factory/config/MethodInvokingFactoryBean.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -69,7 +69,7 @@ import org.springframework.beans.factory.FactoryBeanNotInitializedException; * </bean> * * <bean id="javaVersion" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> - * <property name="targetObject" value="sysProps"/> + * <property name="targetObject" ref="sysProps"/> * <property name="targetMethod" value="getProperty"/> * <property name="arguments" value="java.version"/> * </bean>