Skip to content

Commit

Permalink
Update deploy-application_java.md
Browse files Browse the repository at this point in the history
  • Loading branch information
making committed Dec 25, 2016
1 parent 7711c5f commit 8bc173a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy-application_java.md
Expand Up @@ -23,7 +23,7 @@ package com.example;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
// ここから追加
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
// ここまで

Expand All @@ -32,7 +32,7 @@ import org.springframework.web.bind.annotation.RestController;
public class HelloCfApplication {

// ここから追加
@RequestMapping("/")
@GetMapping("/")
String hello() {
return "Hello World!";
}
Expand All @@ -48,7 +48,7 @@ public class HelloCfApplication {

``` console
$ cd hello-cf
$ ./mvnw clean package
$ ./mvnw package -Dmaven.test.skip=true
```

まずはローカルでアプリケーションを実行してみましょう。
Expand Down

0 comments on commit 8bc173a

Please sign in to comment.