title: After starting spring boot secound time getting ClassNotFoundException
body: <p>I'm getting an ClassNotFoundException when I'm starting my spring boot (via Intellij) application the secound time. So the first time every thing is working fine and after then the exception occurs.</p>
  <p>The exception: <code>Java HotSpot(TM) 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release. Error: Could not find or load main class com.demo.demo.DemoApplication Caused by: java.lang.ClassNotFoundException: com.demo.demo.DemoApplication</code></p>
  <p>Using Java 15 and gradle for my Demo project.</p>
  <p>build.gradle file:</p>
  <pre><code>plugins {
  id 'org.springframework.boot' version '2.3.4.RELEASE'
  id 'io.spring.dependency-management' version '1.0.10.RELEASE'
  id 'java'}
  group = 'com.demo'
  version = '0.0.1-SNAPSHOT'
  sourceCompatibility = '15'
  
  dependencies {
  implementation 'org.springframework.boot:spring-boot-starter-actuator'
  implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
  implementation 'org.springframework.boot:spring-boot-starter-web'
  testImplementation('org.springframework.boot:spring-boot-starter-test') {
      exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
  
  
    }
  }
  </code></pre>
  <p>DemoApplication Java file</p>
  <pre><code>package com.demo.demo;
  
  import org.springframework.boot.SpringApplication;
  import org.springframework.boot.autoconfigure.SpringBootApplication;
  @SpringBootApplication
  public class DemoApplication {
  
      public static void main(String[] args) {
          SpringApplication.run(DemoApplication.class, args);
      }
  }
  </code></pre>
  <p>DemoController my test Controller</p>
  <pre><code>package com.demo.demo;
  
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.bind.annotation.RestController;
  @RestController
  public class DemoController {
      @RequestMapping(&quot;/hello&quot;)
      public String hello(){
          return &quot;hello&quot;;
      }
  }
  </code></pre>