【发布时间】:2015-12-27 18:35:15
【问题描述】:
我构建了带有 ssl 支持的 spring-boot 可执行战争。 我的 application.properties 文件是:
server.port = 8443
server.ssl.key-store = classpath:keystore.jks
server.ssl.key-store-password = secret
server.ssl.key-password = another-secret
WAR 文件包含“keystore.jks”文件。但我得到了奇怪的例外:
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
符号“!”是什么意思?意思是路径'D:/projects/vi3na/vi3na.web/target/vi3na.war!/WEB-INF/classes!/keystore.jks'
【问题讨论】:
标签: tomcat ssl spring-boot war keystore