You can still use bootstrap.yml with SpringBoot 3.X.X
bootstrap.yml
You need to use following dependency
implementation('org.springframework.cloud:spring-cloud-starter-bootstrap')