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("");
             */
        };
    }
}

package com.stefanengineering;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

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

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

Remove commented out init code