I just bean through two web application and in both project’s “applicationContext.xml” file there is a tag
<beans:beans>
...
</beans:beans>
and in another is
<beans>
...
</beans>
Can someone explain to me is there any difference?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no semantic difference, they mean exactly the same thing. It’s just a difference in how their XML namespaces are declared.
You’ll see that the first example declares the namespace like this, which declares a namespace prefix
beans:and binds it to the namespace URIhttp://www.springframework.org/schema/beans:The second will use the “default” namespace, which binds the same URI to the default namespace (i.e. the one with no prefix):
For more details, go and read up on XML Namespaces.