0.报错
[2020-03-05 13:56:28:924] [ERROR] - org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter.report(LoggingFailureAnalysisReporter.java:42) -
***************************
APPLICATION FAILED TO START
***************************
Description:
The Tomcat connector configured to listen on port 8013 failed to start. The port may already be in use or the connector may be misconfigured.
Action:
Verify the connector's configuration, identify and stop any process that's listening on port 8013, or configure this application to listen on another port.
1.这是报错前的配置
server:
port: 8013
ssl:
#证书的路径.
key-store: classpath:XXX.jks
#证书密码,请修改为您自己证书的密码.
key-store-password: XXX
#秘钥库类型
keyStoreType: JKS
#证书别名
keyAlias: XXX
2.这是解决后的配置
server:
port: 8013
ssl:
#证书的路径.
key-store: classpath:XXX.jks
#证书密码,请修改为您自己证书的密码.
key-store-password: XXX
#秘钥库类型
#keyStoreType: JKS
#证书别名
#keyAlias: XXX
经过
看到报文第一反应是端口占用,然后netstat -ano查看了端口发现并不是端口占用问题。
后google+百度都没得到解决方案,之后看到了这个文章
按照文章注释掉了 keyStoreType 无果,后面忙试继续把证书别名keyAlias也注释掉,启动成功。祝君好运~