我正在用 bazel 构建我的 java 项目。我想在构建/运行时使用环境变量。根据文档 --action_env=APP_ENV=Development应该可以工作。
所以我做 bazel run myproject:app --action_env=APP_ENV=Development
但System.getenv("APP_ENV");为空
在我的 Intellij IDE 中,我有以下内容。既不工作--action_env=APP_ENV=Development也不--action_env APP_ENV=Development工作

青春有我
慕哥9229398
白衣染霜花
随时随地看视频慕课网APP
相关分类