Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Basic Type Safe Injection
provider.name=foo
provider.enabled=true
provider.roles=user,admin,superadmin
@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
You can’t perform that action at this time.