1. @Component + @Value 2. @Component + @ConfigurationProperties(prefix = "weixin")+@PropertySource(value = "classpath:weixin.properties") 3. @ConfigurationProperties(prefix = "weixin") + @EnableConfigurationProperties(value = WeixinProperties.class)
08-23
18万+