eb init -p java-11 -p Tomcat -p "aws-elasticbeanstalk-extended-healthcheck" my-application
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter-tomcat
org.springframework.boot
spring-boot-starter-jetty
server.port=5000
以上步骤完成后,应用程序将在 AWS Elastic Beanstalk 上正常运行。