Skip to content

Commit

Permalink
Whitespace (spaces instead of tabs)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsyer committed Jul 28, 2017
1 parent a9778d5 commit 687aeb9
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions complete/src/main/java/hello/Application.java
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
package hello;

import hello.storage.StorageProperties;
import hello.storage.StorageService;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

import hello.storage.StorageProperties;
import hello.storage.StorageService;

@SpringBootApplication
@EnableConfigurationProperties(StorageProperties.class)
public class Application {

public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}

@Bean
CommandLineRunner init(StorageService storageService) {
return (args) -> {
@Bean
CommandLineRunner init(StorageService storageService) {
return (args) -> {
storageService.deleteAll();
storageService.init();
};
}
};
}
}

0 comments on commit 687aeb9

Please sign in to comment.