简体   繁体   English

AWS JAVA BeanStalk-运行该应用程序的环境

[英]AWS JAVA BeanStalk - What environmet is running the app

There's a way to know in my app if it's running at a specific beanstalk envinroment? 有一种方法可以知道我的应用程序是否在特定的beantalk环境下运行?

I am using Java with SPRING MVC and have access to AWS SDK. 我将Java与SPRING MVC结合使用,并且可以访问AWS开发工具包。

Thanks. 谢谢。

I found a way to resolve. 我找到了解决方法。

In AWS Management Console is possible to set environment parameters. 在AWS管理控制台中可以设置环境参数。

So I set this parameters on the different envinroments and simple check in my java app: 因此,我在不同的环境中设置了此参数,并在Java应用程序中进行了简单检查:

System.getProperty("param1")

I don't know if that's a better way, but for me solves now. 我不知道这是否是更好的方法,但是对我来说现在可以解决。

Thanks. 谢谢。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用AWS运行在localhost中运行的Java应用 - How to Run a java app running in localhost with AWS 如何将 LetsEncrypt SSL 安装到运行 Tomcat 8 和 Java 8 平台的 AWS Elastic Beanstalk 应用程序上 - How do I install LetsEncrypt SSL onto AWS Elastic Beanstalk application running Tomcat 8 with Java 8 Platform 如何为运行 Java 应用程序的多 docker 容器 AWS Elastic Beanstalk 环境动态分配内存 - How to dynamically allocate memory to multi-docker container AWS Elastic Beanstalk environment running Java applications 通过 maven for Spring Boot 应用程序为 AWS Beanstalk 创建 .ebextensions 的正确方法是什么 - What is the proper way to create .ebextensions for AWS Beanstalk through maven for Spring Boot app 如何从Spring Java Elastic Beanstalk应用程序连接到我的AWS DynamoDB实例? - How do I connect to my AWS DynamoDB instance from a Spring Java Elastic Beanstalk app? 用于 Spring 启动项目的 AWS beanstalk 上的 Java 11 - Java 11 on AWS beanstalk for Spring boot project 将 Java 网站部署到 AWS Elastic Beanstalk - Deploy Java Website to AWS Elastic Beanstalk AWS Elastic Beanstalk和JAVA_OPTS - AWS Elastic Beanstalk and JAVA_OPTS 如何在AWS Elastic Beanstalk上为Java Web应用程序创建用户身份验证系统? - How to go about creating a user authentication system for a Java web app on AWS Elastic Beanstalk? 在AWS Elastic Beanstalk应用程序中运行Tomcat Docker时进行端口转发 - Port forwarding in when running a Tomcat Docker in an AWS Elastic Beanstalk application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM