title: Jar file not able to find the keystore
body: <p>I am running a SpringKafka producer.I have configured the keystore location in the yml file and its being picked up when ran in eclipse. But when the code is run as a jar its unable to find the keystore location.How to resolve this.</p>
  
  <pre><code>spring:
    kafka:
      producer:
        ssl:
          key-password:
          key-store-location: classpath:es-cert.jks
          key-store-password: password
          key-store-type: jks
  </code></pre>
  
  <p>This is my yml file.</p>
  
  <p>I am getting the following error:</p>
  
  <p>java.io.FileNotFoundException: class path resource [es-cert.jks] cannot be resolved to absolute file path because it does not reside in the file system: jar:file:/u01/home/app/user-docker/kafka2.jar!/BOOT-INF/classes!/es-cert.jks</p>
  
  <p>But the es-cert.jks is present inside jar.</p>