1. 生成key

JDK下

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

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

 

Spring Boot 支持https_spring

 

 

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_tomcat_02