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:28:11 UTC

[GitHub] [skywalking] makefriend8 commented on issue #6893: Can Spring RestTemplate work?

makefriend8 commented 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.


-- 
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