externally create jaxb annotations for class

后端 未结 2 1679
醉酒成梦
醉酒成梦 2021-02-10 00:58

So, usually I apply JAXB annotations in the code as follows:

package com.example;

@XmlRootElement(name = \"Foo\", namespace = \"example.com\")
@XmlType(name = \         


        
2条回答
  •  被撕碎了的回忆
    2021-02-10 01:37

    Note: I'm the EclipseLink JAXB (MOXy) lead and a member of the JAXB (JSR-222) expert group.

    The MOXy implementation of JAXB has an external mapping file that you can use to provide the metadata.

    
    
        
            
                
            
        
    
    

    For More Information

    • http://blog.bdoughan.com/2010/12/extending-jaxb-representing-annotations.html

提交回复
热议问题