Thursday, April 14, 2016

How to get annotations from Java class file

To get annotations from Java class file, you can use the following command:

$ javap -v -cp ./build/classes/test/ learningtest.com.fasterxml.jackson.databind.lombok.LombokAllArgsConstructorDomain | grep ConstructorP
  #47 = Utf8               Ljava/beans/ConstructorProperties;
$

Reference:
http://stackoverflow.com/questions/3933119/how-to-view-annotation-of-java-classfile-via-command-line

No comments:

Post a Comment