spring boot出现no profiles are currently active

如果不同环境有不同application-${}.properties,则在eclipse中需要设置环境变量 工程右键maven-》select maven profiles,勾选环境   如果上述步骤不行,再试一下   在启动类上右键run as-》run configuration
相关文章
相关标签/搜索