I makes custom rule
for checking api url value follows camel case.
So I want to get annoatation’s value.
( the annotations i will check is : @RequestMapping, @GetMapping, @PostMapping)
And these annotatios used like that
- @RequestMapping(value = “/v1/guides”, headers = “Content-Type= multipart/form-data”, method = RequestMethod.POST)
- @GetMappint (value = “/v1/test”)
And I extract from annoations only the ‘Strings’ of “value” like “/v1/guides”
(and then i will parse these strings with “/” )
( and i don’t need to get “header” and “method” 's value like “multipart/form-data”, “RequestMethod.POST”)
how to i get it?
- i try to use “valuesForAnnotation” but i cannot tranfoms values to “String” - only object i can get.