Код: Выделить всё
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
org.springframework.boot
spring-boot-starter-parent
3.2.7
my.whatever
whatever-service
0.0.1-SNAPSHOT
jar
${project.artifactId}
UTF-8
17
3.2.7
2023.0.2
org.springframework.cloud
spring-cloud-dependencies
${spring.cloud.version}
pom
import
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter-actuator
org.springframework.cloud
spring-cloud-starter
org.springframework.cloud
spring-cloud-starter-bootstrap
org.springframework.cloud
spring-cloud-starter-config
org.springframework.cloud
spring-cloud-starter-netflix-eureka-client
Код: Выделить всё
spring:
application:
name: whatever-service
cloud:
config:
uri: http://localhost:8888
Код: Выделить всё
service_1 | 2024-08-01T07:43:49.514Z INFO 1 --- [service_1] [main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://localhost:8888
Я думаю, это из-за аннотации @SpringBootTest, которая наследует @BootstrapWith, которая, как мне кажется, вызывает загрузку bootstrap.yml, поэтому я вижу эту строку.
Подробнее здесь: https://stackoverflow.com/questions/788 ... ce-startup