The identation in application.yml
for spring.config.import
is incorrect. The correct place for config is:
spring:
application:
name: MyService
profiles:
active: dev
config:
import: vault://
After this the secrets are successfully getting injected in the springboot application.