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

但当我启动应用程序时。我在控制台上看到了这个:
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发布于 2021-01-16 18:41:14
尝试使用小写的prod作为JVM标志,或者尝试使用另一种设置不同Spring配置文件的方法。您可以在此处找到设置Spring Profile的不同方法的描述,例如Baeldung Spring Profiles
https://stackoverflow.com/questions/65748648
复制相似问题