How to resolve this “required a bean” error

I am new to Springboot and I learning by Sping’s tutorials and guides on “https://spring.io/guides“.

Right now I try to understand and redo the tutorial: “Accessing data with MySQL”

Unfortunatelly I got the Error during Mavenbuild:

Error starting ApplicationContext. To display the auto-configuration report re-run your application with ‘debug’ enabled.
2017-12-07 10:26:42.708 ERROR 8100 — [ main] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

Field goodRepository in xxx.controller.GoodController required a bean of type ‘xxx.repositories.GoodRepository’ that could not be found.

Action:

Consider defining a bean of type ‘xxx.repositories.GoodRepository’ in your configuration.

Process finished with exit code 1

Here is my Code:

Good.java:

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import lombok.Data;

@Entity
@Data
public class Good {

    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    private Integer id;

    private String name;

    public Good() {
    }

    public void setName(String name) {
        this.name = name;
    }
}

GoodRepository:

import org.springframework.data.repository.CrudRepository;

import xxx.model.Good;

public interface GoodRepository extends CrudRepository<Good, Long>
{

}

GoodController:

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import xxx.model.Good;
import xxx.repositories.GoodRepository;

@Controller
@RequestMapping(path="/goods")
public class GoodController {

    @Autowired
    private GoodRepository goodRepository;

    @GetMapping(path="/add")
    public @ResponseBody String addNewGod( @RequestParam String name)
    {
        Good god= new Good();
        god.setName(name);
        goodRepository.save(god);
        return "Saved";
    }

    @GetMapping(path="/all")
    public @ResponseBody Iterable<Good> getAllGods()
    {
        return goodRepository.findAll();
    }

}

What did I where wrong?