写了个spring cloud config 的client测试,但是bootstrap里的配置没被读取到,我再bootstrap中设置的端口也没有生效
这是我的pom
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
</dependency>
</dependencies>
这是我的bootstrap.yml
spring:
cloud:
config:
uri: http://localhost:8084/
label: master
profile: pro
application:
name: config-client
server:
port: 8085