Skip to content

Instantly share code, notes, and snippets.

@bvulaj bvulaj/AppConfig.java
Last active Mar 14, 2018

Embed
What would you like to do?
Third Party Injection
@Configuration
public class AppConfig {
@Bean
@ConfigurationProperties("provider")
public ProviderInfo providerInfo() {
return new ProviderInfo();
}
}
provider.name=foo
public class ProviderInfo {
private String name;
}
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.