From d5654d576cb29d6a4162baae5cabf377dc577946 Mon Sep 17 00:00:00 2001 From: Tristan <135599584+Tristan-WorkGH@users.noreply.github.com> Date: Tue, 28 May 2024 16:59:28 +0200 Subject: [PATCH] Fix SpringBoot scan package --- .../orchestrator/server/MergeOrchestratorApplication.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/org/gridsuite/merge/orchestrator/server/MergeOrchestratorApplication.java b/src/main/java/org/gridsuite/merge/orchestrator/server/MergeOrchestratorApplication.java index 77f440b..51d04e4 100644 --- a/src/main/java/org/gridsuite/merge/orchestrator/server/MergeOrchestratorApplication.java +++ b/src/main/java/org/gridsuite/merge/orchestrator/server/MergeOrchestratorApplication.java @@ -14,17 +14,14 @@ import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.ComponentScan; /** * @author Jon Harper * @author Franck Lecuyer */ @SuppressWarnings("checkstyle:HideUtilityClassConstructor") -@SpringBootApplication -@ComponentScan(basePackageClasses = {MergeOrchestratorApplication.class, NetworkStoreService.class}) +@SpringBootApplication(scanBasePackageClasses = { MergeOrchestratorApplication.class, NetworkStoreService.class }) public class MergeOrchestratorApplication { - public static void main(String[] args) { Utils.initProperties(); SpringApplication.run(MergeOrchestratorApplication.class, args);