证书自行在域名处选择pfx下载 springboot配置如下 就可以了 测试可以用 server: ssl: key-store: classpath:cert/xxxx.pfx key-store-type: PKCS12 key-store-password: xxxxxx #写你的密码