Spring Boot 支持https

时间:2023-03-09 07:54:40
Spring Boot 支持https

1. 生成key

JDK下

keytool -genkeypair -alias mySSL -keyalg RSA -keystore E:\tomcat.key

其中-alias是证书的别名,RSA是加密算法,-keystore后是输出证书的路径所在

Spring Boot 支持https

2. spring boot 配置ssl使用https

代码

https://github.com/spring-projects/spring-boot/tree/v1.5.9.RELEASE/spring-boot-samples/spring-boot-sample-tomcat-multi-connectors

postman关闭https验证

Spring Boot 支持https

参考:https://www.cnblogs.com/lianggp/p/8136540.html