optimize imports, refformat code
This commit is contained in:
1 parent
bf6a536374
commit
3c3bbb8863
6 files changed
+20
-21
No files matched your search
@@ -1,15 +1,12 @@
|
||||
package hello;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.CommandLineRunner;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||||
import org.springframework.context.ConfigurableApplicationContext;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@ComponentScan
|
||||
@EnableAutoConfiguration
|
||||
@@ -21,8 +18,9 @@ public class Application implements CommandLineRunner {
|
||||
|
||||
SpringApplication.run(Application.class, args);
|
||||
}
|
||||
@Override
|
||||
public void run(String... args) throws Exception {
|
||||
|
||||
@Override
|
||||
public void run(String... args) throws Exception {
|
||||
// save a couple of customers
|
||||
repository.save(new Customer("aJack", "Bauer"));
|
||||
repository.save(new Customer("aChloe", "O'Brian"));
|
||||
|
||||
Reference in new issue
Block a user