vendredi 4 août 2023

Is it possible to search for the code using Java reflection

I have a Java code

import org.springframework.web.client.RestTemplate;


public class SomeClass {
   public void doRequest(){
      ...
      restTemplate.postForEntity(someurl, body, String.class);
      ...
   }
}

is there a way I can find out the usage of restTemplate.postForEntity method in the jar file using java reflection? if so is there a way to find out the line in the file that method is used?





Aucun commentaire:

Enregistrer un commentaire