- 筹备, 曾经申请好域名的 jks 文件
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<excludes>
<exclude>cc.vaneying.cn.jks</exclude>
</excludes>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<includes>
<include>cc.vaneying.cn.jks</include>
</includes>
</resource>
<nonFilteredFileExtension>p12</nonFilteredFileExtension>
<nonFilteredFileExtension>jks</nonFilteredFileExtension>
- yml 配置
ssl:
key-store: classpath:cc.vaneying.cn.jks
key-store-password: Pongpie#123
key-store-type: JKS
enabled: true
本地用 https 调用接口即可