package com.stefanengineering;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class Application {
    private static final Logger logger = LoggerFactory.getLogger(Application.class);

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

    @Bean
    public CommandLineRunner initRepository(UserRepository repository) {
        return (args) -> {
            /*
             * repository.save(new User("Stefan", "Eng")); repository.save(new
             * User("John", "Smith")); repository.save(new User("Alex",
             * "Johnson"));
             * 
             * logger.info("Customers found with findAll():");
             * logger.info("-------------------------------"); for (User
             * customer : repository.findAll()) {
             * logger.info(customer.toString()); } logger.info("");
             */
        };
    }
}

@@ -86,59 +86,8 @@
 ry;%0A
-import org.springframework.boot.CommandLineRunner;%0A
 impo
@@ -125,32 +125,32 @@
 ingApplication;%0A
+
 import org.sprin
@@ -205,60 +205,8 @@
 ion;
-%0Aimport org.springframework.context.annotation.Bean;
 %0A%0A@S
@@ -380,24 +380,24 @@
 g%5B%5D args) %7B%0A
+
         Spri
@@ -449,615 +449,7 @@
    %7D
-%0A%0A    @Bean%0A    public CommandLineRunner initRepository(UserRepository repository) %7B%0A        return (args) -%3E %7B%0A            /*%0A             * repository.save(new User(%22Stefan%22, %22Eng%22)); repository.save(new%0A             * User(%22John%22, %22Smith%22)); repository.save(new User(%22Alex%22,%0A             * %22Johnson%22));%0A             * %0A             * logger.info(%22Customers found with findAll():%22);%0A             * logger.info(%22-------------------------------%22); for (User%0A             * customer : repository.findAll()) %7B%0A             * logger.info(customer.toString()); %7D logger.info(%22%22);%0A             */%0A        %7D;%0A    %7D
 %0A%7D%0A

Remove commented out init code