Created
March 14, 2018 22:17
-
-
Save bvulaj/e19ce694383bc8d32d4bf5664f63eb5a to your computer and use it in GitHub Desktop.
Basic Type Safe Injection
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
provider.name=foo | |
provider.enabled=true | |
provider.roles=user,admin,superadmin |
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
@Component | |
@ConfigurationProperties("provider") | |
public class ProviderInfo { | |
private String name; | |
private boolean enabled; | |
private List<String> roles; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment