Created
May 25, 2020 17:48
-
-
Save qzagarese/8ecfa2546878893b4f6970d9f95a3cdc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GetMappingHandler implements AnnotationHandler<GetMapping> { | |
@Override | |
public void handle(ScanContext scanContext, FrameworkAnnotationContext<GetMapping> annotationContext) { | |
String endpoint = annotationContext.getAnnotation().value(); | |
Method m = (Method) annotationContext.getAnnotatedElement(); | |
Object o = annotationContext.getInstance(); | |
scanContext.createMapping(endpoint, m, o); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment