Matt Raible пре 7 година
родитељ
комит
eb6b47f24e
1 измењених фајлова са 2 додато и 3 уклоњено
  1. 2
    3
      TUTORIAL.md

+ 2
- 3
TUTORIAL.md Прегледај датотеку

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