This source code is an Spring Boot SSL (HTTPS) example.
Tested with
- Maven 3
- Java 8
- Spring Boot 2.2.4.RELEASE
- Spring Boot default embedded Tomcat 9
- Self-signed certificate (PKCS12)
For explanation, please visit this article - Spring Boot SSL (HTTPS) examples
$ git clone https://github.com/mkyong/spring-boot
$ cd spring-boot-ssl
$ mvn clean package
$ java -jar target/spring-boot-web.jar
access https://localhost:8443