diff --git a/src/main/java/edu/stanford/protege/webprotege/filesub/WebProtegeFileSubmissionServiceApplication.java b/src/main/java/edu/stanford/protege/webprotege/filesub/WebProtegeFileSubmissionServiceApplication.java index cc820e4..40380bc 100644 --- a/src/main/java/edu/stanford/protege/webprotege/filesub/WebProtegeFileSubmissionServiceApplication.java +++ b/src/main/java/edu/stanford/protege/webprotege/filesub/WebProtegeFileSubmissionServiceApplication.java @@ -2,15 +2,18 @@ import edu.stanford.protege.webprotege.common.WebProtegeCommonConfiguration; import edu.stanford.protege.webprotege.ipc.WebProtegeIpcApplication; +import edu.stanford.protege.webprotege.ipc.impl.RabbitMqProperties; import edu.stanford.protege.webprotege.jackson.WebProtegeJacksonApplication; import io.minio.MinioClient; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Import; @SpringBootApplication @Import({WebProtegeCommonConfiguration.class, WebProtegeIpcApplication.class, WebProtegeJacksonApplication.class}) +@EnableConfigurationProperties(RabbitMqProperties.class) public class WebProtegeFileSubmissionServiceApplication { public static void main(String[] args) { @@ -29,5 +32,4 @@ MinioClient minioClient(MinioProperties properties) { StorageService storageService(MinioClient minioClient, MinioProperties properties) { return new StorageService(minioClient, properties); } - }