title: Field xyz in abc required a bean of type dfg that could not be found
body: <p>I am new to spring boot and want to design my own APIs and test them with Postman client. However, I can't get past the following error.</p>
  <p><a href="https://i.stack.imgur.com/37eHy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/37eHy.png" alt="enter image description here" /></a></p>
  <p>Any opinions on this one? I found similar topics but none of them fix my problem.</p>
  <p>I also give you my controller, model, and service classes.</p>
  <p><a href="https://i.stack.imgur.com/qH5YO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qH5YO.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/1dTs6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1dTs6.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/FS7uq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FS7uq.png" alt="enter image description here" /></a></p>
  <p>I believe I clearly initialized LectureService reference by using @Autowired annotation. This error keeps bugging me.</p>
  <p>Note: I also added</p>
  <pre><code>@SpringBootApplication(scanBasePackages = {
          &quot;io.theBMan.springBootStarter.lecture&quot;
  })
  </code></pre>
  <p>to my App.java class but didn't help as well.</p>