title: "Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled" when run Spring Boot project
body: <p>This is error that I got when run Spring Boot program .</p>
  <p>The structure of my project like the following:</p>
  <p><a href="https://i.stack.imgur.com/IXi58.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IXi58.png" alt="enter image description here" /></a></p>
  <p><code>Student.java</code> just is model class</p>
  <p>And <code>StudentRepo.java</code> I have</p>
  <pre><code>
  public interface StudentRepo extends JpaRepository&lt;Student, Long&gt;{
  
  }
  
  </code></pre>
  <p><code>StudentService.java</code></p>
  <pre><code>@Service
  @Transactional
  public class StudentService {
      @Autowired
      private StudentRepo st;
      
      public List&lt;Student&gt; findAll()
      {
          return st.findAll();
      }
  }
  
  </code></pre>
  <p>And file <code> TestServiceApplication.java</code></p>
  <pre><code>@SpringBootApplication
  public class TestServiceApplication implements CommandLineRunner{
  
      private StudentService stu;
      public static void main(String[] args) {
          SpringApplication.run(TestServiceApplication.class, args);
      }
  
      @Override
      public void run(String... args) throws Exception {
          // TODO Auto-generated method stub
          List&lt;Student&gt; li = stu.findAll();
          li.forEach(System.out :: println);
      }
  
  }
  </code></pre>
  <p>When I run I get the error like the following</p>
  <pre><code>Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
  2021-03-11 15:11:54.458 ERROR 22348 --- [           main] o.s.boot.SpringApplication               : Application run failed
  
  java.lang.IllegalStateException: Failed to execute CommandLineRunner
  </code></pre>
  <p>Please help me.Thank you all.</p>