title: How to use grpc with spring boot
body: <p>I am new in grpc i don't know how to use it with spring boot but using the below link </p>
  
  <ol>
  <li><p><a href="https://github.com/saturnism/grpc-java-by-example/tree/master/simple-grpc-server" rel="nofollow noreferrer">https://github.com/saturnism/grpc-java-by-example/tree/master/simple-grpc-server</a></p></li>
  <li><p><a href="https://github.com/saturnism/grpc-java-by-example/tree/master/simple-grpc-client" rel="nofollow noreferrer">https://github.com/saturnism/grpc-java-by-example/tree/master/simple-grpc-client</a></p></li>
  </ol>
  
  <p>note* : - first is for server project and second is for client project.</p>
  
  <p>i have created a project on grpc with spring boot but i can'nt getting understand one thing in this that in grpc client project how can i use classes which are generated by protobuf in the project of grpc server. because it is not creating any proto file in grpc client project then how can i use the classes of grpc server project in grpc client project or can we create one project for grpc server and client instead of creating a diffrent project for both.</p>
  
  <p>I have two queries to ask related to this question one:-
  1. How to use classes of grpc generated by protobuf compiler in another project like if client and server are two different project and only server have proto generated files and client wants to use same classes.</p>
  
  <ol start="2">
  <li>How can i create all these thing in a single project means client and server in one project and then how can i run this project with step by step demo.</li>
  </ol>