Spring-Boot-Programm war Keystore nicht gefunden

Ich erstelle einen ausführbaren Spring-Boot-Krieg mit SSL-Unterstützung. Meine application.properties-Datei lautet:

server.port = 8443
server.ssl.key-store = classpath:keystore.jks
server.ssl.key-store-password = secret
server.ssl.key-password = another-secret

ie @ WAR-Datei enthält die Datei 'keystore.jks'. Aber ich bekomme komische Ausnahme:

org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Could not find key store classpath:keystore.jks

Caused by: java.io.FileNotFoundException: class path resource [keystore.jks] cannot be resolved to absolute file path because it does not reside in the file system: jar:file:/D:/projects/vi3na/vi3na.web/target/vi3na.war!/WEB-INF/classes!/keystore.jks

Was unterschreibt '!' im Pfad 'D: /projects/vi3na/vi3na.web/target/vi3na.war! / WEB-INF / classes! /keystore.jks'

Antworten auf die Frage(2)

Ihre Antwort auf die Frage