【Spring】零散

如何扩展XML自定义标签:参考spring core.pdf中 10.2 XML Schema Authoring章节(含具体样例)

1. Author an XML schema to describe your custom element(s).
2. Code a custom NamespaceHandler implementation.
3. Code one or more BeanDefinitionParser implementations (this is where the real work is done).
4. Register your new artifacts with Spring.   

  • META-INF/spring.handlers    如何解析自定义XML标签
  • META-INF/spring.schemas   自定义XML定义

 

posted @ 2023-07-17 19:51  飞翔在天  阅读(2)  评论(0编辑  收藏  举报