@Configuration @EnableConfigurationProperties(value=FileProperties.class) @MapperScan(basePackages="com.efficient.file.dao") public class FileConfig extends Object
@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(name="com.efficient.file.active",
havingValue="local",
matchIfMissing=true)
public FileService localFile()
@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(name="com.efficient.file.active",
havingValue="db")
public FileService dbFile()
@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(name="com.efficient.file.active",
havingValue="minio")
public FileService minioFile()
Copyright © 2023. All rights reserved.