瀏覽代碼

Fixed code typo

Matt Raible 7 年之前
父節點
當前提交
eb6b47f24e
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2
    3
      TUTORIAL.md

+ 2
- 3
TUTORIAL.md 查看文件

@@ -89,7 +89,8 @@ import org.springframework.stereotype.Component;
89 89
 import java.util.stream.Stream;
90 90
 
91 91
 @Component
92
-class BeerCommandLineRunner implements CommandLineRunner {
92
+public class BeerCommandLineRunner implements CommandLineRunner {
93
+    private final BeerRepository repository;
93 94
 
94 95
     public BeerCommandLineRunner(BeerRepository repository) {
95 96
         this.repository = repository;
@@ -104,8 +105,6 @@ class BeerCommandLineRunner implements CommandLineRunner {
104 105
         );
105 106
         System.out.println(repository.findAll());
106 107
     }
107
-
108
-    private final BeerRepository repository;
109 108
 }
110 109
 ```
111 110