开发者

specify alternate JAXB provider

In my Grails app, I want to use EclipseLink as the JAXB provider. I tried adding a file grails-app\conf\jaxb.properties with the contents

开发者_如何学Go
javax.xml.bind.context.factory=org.eclipse.persistence.jaxb.JAXBContextFactory

But it seems the default JAXB provider is still being used. I've confirmed that the relevant JARs for EclipseLink are on my runtime classpath.


The jaxb.properties file needs to be added in the same package as your domain classes:

  • http://blog.bdoughan.com/2011/05/specifying-eclipselink-moxy-as-your.html
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜