开发者

specify alternate JAXB provider

开发者 https://www.devze.com 2023-04-11 11:27 出处:网络
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

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

精彩评论

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

关注公众号