File tree Expand file tree Collapse file tree
main/java/com/okta/developer/jugtours
test/java/com/okta/developer/jugtours Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9797 <executions >
9898 <execution >
9999 <id >copy-resources</id >
100- <phase >prepare-package </phase >
100+ <phase >process-classes </phase >
101101 <goals >
102102 <goal >copy-resources</goal >
103103 </goals >
Original file line number Diff line number Diff line change 44import org .springframework .boot .CommandLineRunner ;
55import org .springframework .boot .SpringApplication ;
66import org .springframework .boot .autoconfigure .SpringBootApplication ;
7+ import org .springframework .context .annotation .Bean ;
78import org .springframework .data .jpa .repository .JpaRepository ;
89import org .springframework .stereotype .Component ;
910import org .springframework .web .bind .annotation .GetMapping ;
1617import java .util .stream .Stream ;
1718
1819@ SpringBootApplication
19- public class JugtoursApplication {
20+ public class JugToursApplication {
2021
2122 public static void main (String [] args ) {
22- SpringApplication .run (JugtoursApplication .class , args );
23+ SpringApplication .run (JugToursApplication .class , args );
2324 }
25+
26+ @ Bean
27+ CommandLineRunner init () {
28+ return args -> {
29+ System .out .println ("Hello Spring!" );
30+ };
31+ }
2432}
2533
2634@ Data
Original file line number Diff line number Diff line change 77
88@ RunWith (SpringRunner .class )
99@ SpringBootTest
10- public class JugtoursApplicationTests {
10+ public class JugToursApplicationTests {
1111
1212 @ Test
1313 public void contextLoads () {
You can’t perform that action at this time.
0 commit comments