Spring-vault turotial question: Autowire VaultTemplate

I'm trying to follow the tutorials for spring-vault


There they are always able to just use @Autowired on VaultTemplate.

Mine is always null and I'm not really sure why. When I do

new VaultTemplate(VaultEndpoint.from(uri), new TokenAuthentication("d5fa0e19-b747-9461-ba80-baa34d5562be"));

it works fine. I'm trying to get the token from a local file instead of hardcoding it......

Read More »

By: StackOverFlow - Thursday, 8 November

Related Posts