springboot使用https协议

application.yml配置如下: 

server:
  #port: 80
  port: 443
  ssl:
    key-store: classpath:SHA256withRSA_www.com.jks
    key-store-password: 123456

在resources资源夹下放一个jks文件即可.

发布了514 篇原创文章 · 获赞 182 · 访问量 36万+

猜你喜欢

转载自blog.csdn.net/dmw412724/article/details/104679175