找了接近半天的时间,原来是那么小的问题
server.ssl.key-store=test.jks
server.ssl.key-store-password=123456
server.ssl.key-store-type=PKCS12
server.ssl.key-alias=test
server.ssl.key-store-password=123456 配置成了 server.ssl.key-password 这个,所以一直报错
参考文章:
https://stackoverflow.com/questions/49324700/enable-https-with-self-signed-certificate-in-spring-boot-2-0