This simplifies the configuration for a majority of users.Afterall, if every property was exposed, users could use standard bean configuration.
It allows you to supplement the traditional Spring beans application context syntax with elements from additional XML schema.
You can find more information in the Spring Reference Documentation.
For example, adding the following element from the security namespace to an application context will start up an embedded LDAP server for testing use within the application: .
Use of a good XML editor while editing the application context file should provide information on the attributes and elements that are available.
A namespace element can be used simply to allow a more concise way of configuring an individual bean or, more powerfully, to define an alternative configuration syntax which more closely matches the problem domain and hides the underlying complexity from the user.
A simple element may conceal the fact that multiple beans and processing steps are being added to the application context.
This means there is no way to reject requests coming from the evil website and allow requests coming from the bank’s website.
To protect against CSRF attacks we need to ensure there is something in the request that the evil site is unable to provide.
Copies of this document may be made for your own use and for distribution to others, provided that you do not charge any fee for such copies and further provided that each copy contains this Copyright Notice, whether distributed in print or electronically.