BAEL-1022 - minor fixes

This commit is contained in:
slavisa-baeldung 2017-08-01 22:31:21 +01:00
parent b25f17f37f
commit 6fcbc9b065
2 changed files with 70 additions and 70 deletions

View File

@ -12,23 +12,24 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<io.grpc.version>1.5.0</io.grpc.version>
</properties>
<dependencies>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-netty</artifactId>
<version>1.4.0</version>
<version>${io.grpc.version}</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf</artifactId>
<version>1.4.0</version>
<version>${io.grpc.version}</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
<version>1.4.0</version>
<version>${io.grpc.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
@ -69,5 +70,5 @@
</executions>
</plugin>
</plugins>
</build>
</build>
</project>

View File

@ -5,8 +5,7 @@ import java.io.IOException;
import io.grpc.Server;
import io.grpc.ServerBuilder;
public class GrpcServer
{
public class GrpcServer {
public static void main(String[] args) throws IOException, InterruptedException {
Server server = ServerBuilder.forPort(8080)
.addService(new HelloServiceImpl()).build();