刚开始使用 Spring Cloud 并使用 Spring Cloud CLI。我使用启动了一个云配置服务器$ spring cloud configserver
,它运行成功。使用这个 urlhttp://localhost:8888/application/default
我得到了浏览器上显示的配置内容
{"name":"application","profiles":["default"],"label":null,"version":null,"state":null,"propertySources":[{"name":"classpath:/launcher/application.yml","source":{"info.description":"Spring Cloud Launcher","eureka.client.instance-info-replication-interval-seconds":5,"eureka.client.initial-instance-info-replication-interval-seconds":5,"eureka.client.serviceUrl.defaultZone":"http://localhost:8761/eureka/","endpoints.restart.enabled":true,"ribbon.ConnectTimeout":3000,"ribbon.ReadTimeout":60000,"h2.datasource.url":"jdbc:h2:tcp://localhost:9096/./target/test","logging.level.kafka":"WARN","logging.level.org.apache.zookeeper":"WARN","logging.level.org.apache.zookeeper.ClientCnxn":"ERROR","logging.level.org.apache.kafka":"WARN","logging.level.org.I0Itec":"WARN"}}]}
它在这里说application.yml
文件位于“classpath:/launcher/application.yml”
我唯一的问题是,它的具体位置在哪里?