我正在和bazel一起构建我的java项目。我想在构建/运行时使用环境变量。根据documentation的说法,--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
都不起作用
?
?
我是不是搞错了?
转载请注明出处:http://www.biaocun.net/article/20230526/1444510.html