Skip to content

Instantly share code, notes, and snippets.

@GaetanoPiazzolla
Created October 9, 2021 16:59
Show Gist options
  • Save GaetanoPiazzolla/d4d2fa5b6fee9a3c67970b497f5bfc54 to your computer and use it in GitHub Desktop.
Save GaetanoPiazzolla/d4d2fa5b6fee9a3c67970b497f5bfc54 to your computer and use it in GitHub Desktop.
package gae.piaz.grpc.client;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class GrpcClientController {
@Autowired
private GrpcClientService grpcClientService;
@RequestMapping("/")
public String printMessage(@RequestParam(defaultValue = "Tano") String name) {
return grpcClientService.sendMessage(name);
}
}
@GaetanoPiazzolla
Copy link
Author

GaetanoPiazzolla commented Oct 9, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment