Java server.ssl.key-store-password不可读
我尝试向我的SpringWeb服务添加https支持 在我的application.properties中,我添加了:Java server.ssl.key-store-password不可读,java,spring,ssl,Java,Spring,Ssl,我尝试向我的SpringWeb服务添加https支持 在我的application.properties中,我添加了: server.ssl.key-store: tomcat.keystore server.ssl.key-store-password: xxxxxx server.ssl.key-password: XXXXX 然后,我在启动服务时收到以下错误消息: org.springframework.context.ApplicationContextException: Unabl
server.ssl.key-store: tomcat.keystore
server.ssl.key-store-password: xxxxxx
server.ssl.key-password: XXXXX
然后,我在启动服务时收到以下错误消息:
org.springframework.context.ApplicationContextException: Unable to start embedded container;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in class path resource
[org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat.class]:
Initialization of bean failed;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'serverProperties':
Could not bind properties; nested exception is org.springframework.beans.NotWritablePropertyException:
Invalid property 'ssl[key-store-password]' of bean class [org.springframework.boot.autoconfigure.web.ServerProperties]:
Cannot access indexed value in property referenced in indexed property path 'ssl[key-store-password]';
nested exception is org.springframework.beans.NotReadablePropertyException:
Invalid property 'ssl[key-store-password]' of bean class [org.springframework.boot.autoconfigure.web.ServerProperties]:
Bean property 'ssl[key-store-password]' is not readable or has an invalid getter method:
Does the return type of the getter match the parameter type of the setter?
我应该从哪里开始调查?我已经尝试了“:”和“=”两种方法,但我得到了相同的错误报告。我只能给出一个模糊的猜测,spring以一种意外的方式转换了你的application.properties。也许你可以在这里找到一个提示:!我用“:”和“=”都试过了,但是我得到了相同的错误报告。我只能给出一个模糊的猜测,spring以一种意外的方式转换了你的application.properties。也许你可以在这里找到一个提示:!