Set JSON provider at RESTEasy on JBoss 7.1.1

前端 未结 4 1253
执念已碎
执念已碎 2021-02-15 17:26

How could I set JSON provider for RestEasy at JBoss 7.1.1?

RestEasy documentation says:

RESTEasy allows you to marshall JAXB annotated POJOs to an

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-15 18:07

    if you just want to have a different module pulled than the standard, you can provide this in a jboss specific deployment descriptor.

    Read https://docs.jboss.org/author/display/AS71/Class+Loading+in+AS7 to learn the details, and read https://docs.jboss.org/author/display/AS7/Implicit+module+dependencies+for+deployments to learn what modules JBoss uses by default.

    To exchange the two providers, provide a META-INF/jboss-deployment-structure.xml with the following content below.

    This switched the provider for me.

    Br Alexander.

    
      
        
          
        
        
          
        
      
    
    

提交回复
热议问题