keystore de guerra executável de inicialização por mola não encontrado
Eu construo guerra executável de inicialização com suporte a ssl. Meu arquivo application.properties é:
server.port = 8443
server.ssl.key-store = classpath:keystore.jks
server.ssl.key-store-password = secret
server.ssl.key-password = another-secret
O arquivo WAR contém o arquivo 'keystore.jks'. Mas eu recebo uma exceção estranha:
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
O que significa '!' significa no caminho 'D: /projects/vi3na/vi3na.web/target/vi3na.war! / WEB-INF / classes! /keystore.jks'