首页 > 解决方案 > 协议处理程序启动失败 Spring Boot SSL 应用程序

问题描述

一旦我在 Spring Boot 中添加 SSL 属性,我的应用程序就不会从命令行运行。

这是我的属性文件#API Settings server.port = 1180

## MULTIPART (MultipartProperties)
# Enable multipart uploads
spring.servlet.multipart.enabled=true
# Threshold after which files are written to disk.
spring.servlet.multipart.file-size-threshold=2KB
# Max file size.
spring.servlet.multipart.max-file-size=200MB
# Max Request Size
spring.servlet.multipart.max-request-size=215MB

## File Storage Properties
# All files uploaded through the REST API will be stored in this directory
file.upload-dir=D:/uploads


server.ssl.enabled=true

#Client
server.ssl.client-auth=need
server.ssl.key-store=D:\Symbox Staging Setup\SimulationAPI2waySLL\JKS\nt-ms.jks
server.ssl.key-store-password=kalsym

server.ssl.key-alias=nt-ms
server.ssl.key-store-type=JKS

server.ssl.trust-store=D:\Symbox Staging Setup\SimulationAPI2waySLL\JKS\nt-ms.jks
server.ssl.trust-store-password=kalsym

这是我的输出

输出

标签: javaspringspring-bootssljava-8

解决方案


如果有人仍在寻找解决方案,这个 stackoverflow.com/a/58602917/8719655 有效。谢谢卡洛斯


推荐阅读