Created
April 30, 2019 22:55
-
-
Save pedrovitorlima/38628ef4d08130d2f121d34265b91d2e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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