When to use and when to use in Spring?
should be used when you have a duplicate id in your parent-child config files and you want to distinguish between the two in either config file.
should be used in the child config file to reference the parent id.
should be used when you do not have a duplicate id in your parent-child config files.