1. @Component + @Value 2. @Component + @ConfigurationProperties(prefix = "weixin")+@PropertySource(value = "classpath:weixin.properties") 3. @ConfigurationProperties(prefix = "weixin") + @EnableConfigurationProperties(value = WeixinProperties.class)
Springboot加载自定义 properties配置文件
最新推荐文章于 2025-02-17 22:07:03 发布