5

I want to see the internal working of Java's and Spring's annotation Like how @Controller, @RequestMapping("/") and all mapped inside, so I want to see Spring's Annotation Processor's Implementations.

Also same for @Override and other Java's Annotation Processor.

The Bitman
  • 1,279
  • 1
  • 11
  • 25
Dhruv
  • 55
  • 7
  • 1
    see this answer https://stackoverflow.com/questions/8587096/how-do-you-debug-java-annotation-processors-using-intellij – Oleksandr Riznyk Oct 04 '18 at 08:05
  • I think this answer is good news for you, but it only explain for @Overide https://stackoverflow.com/questions/18189980/how-do-annotations-like-override-work-internally-in-java/18202623#18202623 – Loc Le Oct 04 '18 at 08:46

1 Answers1

1

When I want to see the implementation or where it is used, I usually use IntelliJ IDEA search usages feature.

Example for your specific request, I searched in all files after the imports import org.springframework.web.bind.annotation.RequestMapping

enter image description here

You can use also the show usages feature, but you will you will need to configure it to skip comments to avoid noise.

Adina Rolea
  • 2,031
  • 1
  • 7
  • 16