In XML file, the property name is 'integerProperty' while the field in the code is 'i'.

Comment From: pivotal-cla

@lifei-zhang-awx Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Comment From: pivotal-cla

@lifei-zhang-awx Thank you for signing the Contributor License Agreement!

Comment From: sbrannen

Hi @lifei-zhang-awx,

Thanks for submitting your first PR to the Spring Framework.

In XML file, the property name is 'integerProperty' while the field in the code is 'i'.

Setter injection in XML configuration is based on JavaBeans property naming conventions.

The property name is the name in the setter method, not the name of the field.

    public void setIntegerProperty(int i) {
        this.i = i;
    }

Thus, the example XML configuration is correct as it is now.

In light of that that, I am closing this PR.