I have a plain jane servlets web application, and some of my classes have the following annotations:
@Controller
@RequestMapping(name = \"/blog/\")
public cl
If you can get access of your .class files, then you may get the annotation using the class as below:
RequestMapping reqMapping =
TestController.class.getAnnotation(RequestMapping.class);
String name = reqMapping.name(); //now name shoud have value as "/blog/"
Also please make sure, your classes are marked with RetentionPolicy as RUNTIME
@Retention(RetentionPolicy.RUNTIME)