You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/05/04 14:31:18 UTC

[GitHub] [skywalking] makefriend8 edited a comment on issue #6893: Can Spring RestTemplate work?

makefriend8 edited a comment on issue #6893:
URL: https://github.com/apache/skywalking/issues/6893#issuecomment-831985395


   I use  https://github.com/spring-guides/gs-spring-boot.git
   and 
   ```
   @RestController
   public class HelloController {
   
   	@RequestMapping("/")
   	public String index() {
   		RestTemplate restTemplate=new RestTemplate();
   		String result = restTemplate.getForObject("http://192.168.2.333:8080/", String.class);
   		System.out.println(result);
   		return "Greetings from Spring Boot!";
   	}
   
   }
   ``` 
   and everthing is the same.  Is there any requirement for one service to call another?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org