java annotations: library to override annotations with xml files

后端 未结 4 1227
花落未央
花落未央 2021-02-07 16:32

Java has annotations and that is good. However, some developers feel that it is best to annotate code with metadata using xml files - others prefer annotations but would use met

4条回答
  •  清酒与你
    2021-02-07 16:59

    Use JAXB http://java.sun.com/developer/technicalArticles/WebServices/jaxb/ You would write the xsd for your metadata file, generate JAXB classes that can help you parse the xml files.

提交回复
热议问题