ITeye博客

自定义spring schema 找不到xsd文件问题

javis163 · 2012-09-15 12:12 · java · 互联网 · spring-xmlbeans · Markdown

自定义spring的schema非常不爽,要写namespacehandler、parser,还要定义xsd、配置schemas。

改了xsd定义还要改java代码,用placeholder能稍微灵活点。

 

建议用spring-xmlbeans来做自定义的spring schema配置,基本可以做到,不需要写namespacehandler、parser,

使用比较自然的方式写配置文件,跟实际的类结构一致即可。Schema变化时,最简单。

http://geronimo.apache.org/xbean/custom-xml.html

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。