I have a large annotation which I have to add before many of methods. the annotation always has the same attributes and looks like
@ApiImplicitParams({
@ApiImplicitParam(name = "Authorization", required = true, paramType = "header", value = "user's token appended by 'Bearer '")
})
I wonder if there is a way I can avoid repeating this annotation quite 100 times in my code and replace it with something shorter like @AuthHeader. Thanks in advance
Aucun commentaire:
Enregistrer un commentaire