共计 544 个字符,预计需要花费 2 分钟才能阅读完成。
- 筹备, 曾经申请好域名的 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 调用接口即可
正文完
发表至: springboot
2022-06-23