java annotations: library to override annotations with xml files

后端 未结 4 1662
耶瑟儿~
耶瑟儿~ 2021-02-07 16:26

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 17:10

    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.

提交回复
热议问题