java annotations: library to override annotations with xml files

后端 未结 4 1225
花落未央
花落未央 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 17:06

    There is not a standard way, but here are some Java frameworks who does it:

    • JPA - check ejb-3_0-fr-spec-persistence.pdf
    • Spring Framework
    • TestNG - as written above, though I think it focuses to much on the annotation side rather than the actual configuration he tries to achieve
    • Seam Framework

提交回复
热议问题