Skip to content

Commit

Permalink
Updating instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
algogrit committed Jun 27, 2019
1 parent 876f4ce commit 6135b2b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions code-samples/02-Client-Server/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,26 @@ Refer: http://sparkjava.com/tutorials/maven-setup
</dependency>
</dependencies>
```

Also modify:

```xml
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
```

from `1.7` to `1.8`.

## Replace the code in App.java

```java
package com.algogrit.java;

import static spark.Spark.*;

public class App {
public static void main(String[] args) {
get("/hello", (req, res) -> "Hello World");
}
}
```

0 comments on commit 6135b2b

Please sign in to comment.