java - 协议处理程序启动失败 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
这是我的输出
解决方案
如果有人仍在寻找解决方案,这个 stackoverflow.com/a/58602917/8719655 有效。谢谢卡洛斯
推荐阅读
- python - Hangman 中的“NoneType”对象支持错误
- jmeter - Jmeter 来自 JDBC 的一个变量,用于 HTTP 请求中的一个用户
- qt - QML 对象和嵌套对象 onCompleted 顺序
- mongodb - 如何将未编组的 xml 插入到 mongodb
- wordpress - 在有状态的 CMS 中将后台与 Github 同步
- python - 矩阵相关给出(nan)值?
- tensorflow - 使用 @tffunction 的 Tensorflow2 警告
- javascript - 如何验证 vue 中的第一个数字不为零?
- c# - 如何使圆形边框和背景颜色完全适合 TextBlock 中的文本范围?
- mysql - 在 MySQL 中查询同一张表时需要帮助