Home > Back-end >  Custom annotations parameter to set up, every time want to encapsulate again how to do
Custom annotations parameter to set up, every time want to encapsulate again how to do

Time:12-31

An annotation, to set up every time a parameter is true, I can't write a note to invoke the annotations, and the parameter is set to true, equivalent to do a simple secondary packaging, how to implement?

CodePudding user response:

Inherit the annotation class (ClassA), and then realizes own annotation class (ClassA_True), according to the need to modify the subclasses truefalse corresponding field default values
  • Related