Created
April 30, 2019 22:53
-
-
Save pedrovitorlima/613f19272308ff40a9b7a182360763f4 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.domain; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.stereotype.Component; | |
@Component | |
public class Secrets { | |
@Value("${myrepo.username}") | |
private String gitUser; | |
@Value("${myrepo.password}") | |
private String gitPass; | |
public String getGitUser() { | |
return this.gitUser; | |
} | |
public String getGitPass() { | |
return this.gitPass; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment