title: Spring jpa did not successfully insert data in Runnable
body: <pre><code> ExecutorService executor = Executors.newFixedThreadPool(9);
      for(String s : list){
          DownLoadFileTask downLoadFileTask = new DownLoadFileTask(s);
          executor.submit(downLoadFileTask);
      }
      executor.shutdown();
      logger.info("===================================================");
      executor.awaitTermination(1, TimeUnit.SECONDS);
  </code></pre>
  
  <p>I used ExecutorService to bulk download pictures in the service。</p>
  
  <p>DownLoadFileTask.class as follows</p>
  
  <pre><code>public class DownLoadFileTask implements Runnable  {
  
  @Resource
  FileClassService fileClassService;
  
  private String downUrl;
  
  public DownLoadFileTask(String downUrl){
      this.downUrl = downUrl;
  }
  
  @Override
  public void run() {
      try {
          String url = DownLoadFileUtils.downloadFile(downUrl,null);
          System.out.println("===================================" + url);
          FileClass file = new FileClass(url);
          file = fileClassService.save(file);
          System.out.println("===================================" + file.toString());
      } catch (IOException e) {
          e.printStackTrace();
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>When i run it， The log is not printed</p>
  
  <p><code>System.out.println("===================================" + file.toString());</code></p>
  
  <p>And there is no record in the database</p>
  
  <p>I do not know how to fix it。Can someone help me?</p>