How to Create a Spring Boot Entry File That Supports Both JAR and WAR Deployment

Learnings from my GSoC project: Migrating Apache Thrift to Spring Boot REST