首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Spring Profiles - IntelliJ IDEA中的JVM系统参数

Spring Profiles - IntelliJ IDEA中的JVM系统参数
EN

Stack Overflow用户
提问于 2021-01-16 18:33:08
回答 1查看 56关注 0票数 0

我使用这个VM选项启动了一个SpringBoot应用程序:

但当我启动应用程序时。我在控制台上看到了这个:

代码语言:javascript
复制
11:29:24.090 [main] DEBUG c.b.e.ServingWebContentApplication - Running with Spring Boot v2.3.7.RELEASE, Spring v5.2.12.RELEASE
11:29:24.090 [main] INFO  c.b.e.ServingWebContentApplication - The following profiles are active: dev
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-01-16 18:41:14

尝试使用小写的prod作为JVM标志,或者尝试使用另一种设置不同Spring配置文件的方法。您可以在此处找到设置Spring Profile的不同方法的描述,例如Baeldung Spring Profiles

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65748648

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档