例如,我不想引用这样的在线 XSD:
<persistence xmlns="…" xmlns:xsi="…"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence
http://www.oracle.com/…/persistence_2_1.xsd"> <!-- online -->
要像这样引用类路径 XSD:
<persistence xmlns="…" xmlns:xsi="…"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence
org/hibernate/jpa/persistence_2_1.xsd"> <!-- classpath -->
没有标准化的方法可以做到这一点。某些产品可能支持类路径 URI:classpath:org/hibernate/jpa/persistence_2_1.xsd
。如果您的产品没有,您可能可以编写一个插件(LSResourceResolver)来启用该功能。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)