Exception in thread “main” javax.xml.bind.PropertyException: name: eclipselink.media-type value: application/json

前端 未结 3 907
鱼传尺愫
鱼传尺愫 2021-02-12 16:28

I\'m attempting to follow the example located here but get an javax.xml.bind.PropertyException. I receive this exception because of the following line of code:

m         


        
3条回答
  •  野性不改
    2021-02-12 17:21

    To my main method I added (you could also use -D):

    System.setProperty("javax.xml.bind.context.factory","org.eclipse.persistence.jaxb.JAXBContextFactory");
    

提交回复
热议问题