title: Springboot gives obscure errors
body: <p>I'm fiddling with Springboot but each step forward brings me two steps back it seems.</p>
  <p>I wired my simple app together with Springboot but I'm not getting this error:</p>
  <pre><code>Caused by: java.lang.ClassNotFoundException: org.springframework.dao.DataAccessException
  </code></pre>
  <p>As well as this:</p>
  <pre><code>Caused by: java.lang.IllegalStateException: Could not evaluate condition on org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$EmbeddedDatabaseConfiguration due to org/springframework/dao/DataAccessException not found. Make sure your own configuration does not rely on that class. This can also happen if you are @ComponentScanning a springframework package (e.g. if you put a @ComponentScan in the default package by mistake)
  </code></pre>
  <p>I don't use any database. The app is very simple. Here is the main class:</p>
  <pre><code>@SpringBootApplication
  public class Helloer {
  
      public static void main(String[] args) {
          ApplicationContext ctx = SpringApplication.run(Helloer.class, args);
          A a = ctx.getBean(A.class);
          a.speak();
      }
  }
  </code></pre>
  <p>Here are the other two classes <code>A</code> and <code>B</code>:</p>
  <pre><code>@Component
  public class A {
      @Autowired
      private B b;
  
      @Value(&quot;Covid 19&quot;)
      private String calamity;
  
      public void speak() {
          b.writeToScreen(this.calamity);
      }
  }
  
  @Component
  public class B {
  
      public void writeToScreen(String message) {
          System.out.println(message);
      }
  }
  </code></pre>
  <p>And here is the config:</p>
  <pre><code>@Configuration
  public class Config {
  
      @Bean
      public B b() {
          return new B();
      }
  }
  </code></pre>
  <p>That's it. Simple as it can possibly be.</p>
  <p>Here is the file structure as well as the build.gradle file content:</p>
  <p><a href="https://i.stack.imgur.com/5Jcay.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5Jcay.png" alt="enter image description here" /></a></p>
  <p>can someone please help me get this tiny program running by pointing me in the right direction as to the fix for this issue?</p>
  <p>Thank you kindly in advance.</p>