Add annotation if target annotation exists
ProprietaryAdds an annotation to a class if it already has a specified target annotation.
io. moderne. java. dropwizard. boot. annotation. AddClassAnnotationIfAnnotationExistsRequired
The annotation that should be added.
The annotation that should be looked for.
Optional
annotateInnerClassesBoolean
Boolean whether to annotate inner classes of the matched annotation
mod run . --recipe= io. moderne. java. dropwizard. boot. annotation. AddClassAnnotationIfAnnotationExists \
-P annotationToAdd= org. springframework. stereotype. Component \
-P targetAnnotationClassName= javax. ws. rs. PathInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.