使用Jhipster,设置spring.profiles.active=dev不生效

在学习和使用Jhipster的时候,企图本地利用spring.profiles.active配置来切换启动环境看是否一场,结果发现配置根本不生效

原注释也是说明在此配置

spring:
  application:
    name: jhipster_springboot_demo
  profiles:
    # The commented value for `active` can be replaced with valid Spring profiles to load.
    # Otherwise, it will be filled in by maven when building the JAR file
    # Either way, it can be overridden by `--spring.profiles.active` value passed in the commandline or `-Dspring.profiles.active` set in `JAVA_OPTS`
    active: dev
    group:
      dev:
        - dev
        - api-docs
        # Uncomment to activate TLS for the dev profile
        #- tls 

结果

img