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

自定义springschema非常不爽,要写namespacehandlerparser,还要定义xsd、配置schemas

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

 

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

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

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

猜你喜欢

转载自javis163.iteye.com/blog/1679062