Created
October 9, 2021 16:59
-
-
Save GaetanoPiazzolla/d4d2fa5b6fee9a3c67970b497f5bfc54 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related to medium article: https://gae-piaz.medium.com/springboot-with-grpc-fast-start-implementation-f8881fda0973