Skip to content

Instantly share code, notes, and snippets.

@pedrovitorlima
Created April 30, 2019 22:55
Show Gist options
  • Save pedrovitorlima/38628ef4d08130d2f121d34265b91d2e to your computer and use it in GitHub Desktop.
Save pedrovitorlima/38628ef4d08130d2f121d34265b91d2e to your computer and use it in GitHub Desktop.
package br.pedro.springboot.springvault;
import br.pedro.springboot.springvault.domain.Secrets;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import javax.annotation.PostConstruct;
@SpringBootApplication
public class SpringVaultApplication {
@Autowired
private Secrets secrets;
public static void main(String[] args) {
SpringApplication.run(SpringVaultApplication.class, args);
}
@PostConstruct
private void postConstruct() {
System.out.println("GIT User: " + secrets.getGitUser());
System.out.println("GIT Pass: " + secrets.getGitPass());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment