Is there any difference between using an id attribute and name attribute on a element in a Spring configuration file?
id
name
Both id and name are bean identifiers in Spring IOC container/ApplicationContecxt. The id attribute lets you specify exactly one id but using name attribute you can give alias name to that bean.
You can check the spring doc here.