As we know, Spring Framework has lot of configuration elements in XML namespaces such as:
<mvc:annotation-config/>
<tx:annotation-driven/>
Some of them do a really huge amout of work, for example: <http>
element in Spring Security security
namespace.
Where to look to find exact code (more than documentation says ) for all effects of introducing particular XML element?
For example - where should I look if I want to see exact Spring actions caused by ussing <security:csrf>
element in <security:http>
element? (which filters/interceptors/converters are added, what scope attributes becomes available etc.)
Almost every namespace (xsd) has a corresponding NamespaceHandler
class somewhere in Spring. The same goes for the elements each element has a corresponding BeanDefinitionParser
.
See the javadoc for the available implementation in Spring itself. The Spring Security ones can be found here .
Most Spring projects nowaways include a namespace in general somewhere in the org.springframework.[project].config
package.
In short you have to :
Refer this document for in-dept details
Have a look at this jar for Spring-security namespace details spring-security-config-xxXRELEASE-sources.jar
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.