@EnableConfigurationProperties({MinIOConfigProperties.class})
将@ConfigurationProperties标记的类作为Bean注入到容器中,也可以在原来的@ConfigurationProperties上继续加@Component,相当于吧
@ConditionalOnClass(FileStorageService.class)
表示有这个类时才会注入spring容器中
将@ConfigurationProperties标记的类作为Bean注入到容器中,也可以在原来的@ConfigurationProperties上继续加@Component,相当于吧
表示有这个类时才会注入spring容器中