shjung 2 lat temu
rodzic
commit
b10eff4791

+ 1 - 2
src/main/java/com/its/op/ItsOpServerApplication.java

@@ -47,10 +47,9 @@ public class ItsOpServerApplication extends SpringBootServletInitializer impleme
     private static final String applicationName = "its-op-server";
 
     @Autowired
-    public ItsOpServerApplication(ProfileConfig profileConfig) {
+    public ItsOpServerApplication() {
         super();
         setRegisterErrorPageFilter(false);
-        profileConfig.printActiveProfiles();
     }
 
     @Override

+ 0 - 23
src/main/java/com/its/op/config/ProfileConfig.java

@@ -1,23 +0,0 @@
-package com.its.op.config;
-
-import lombok.RequiredArgsConstructor;
-import lombok.extern.slf4j.Slf4j;
-import org.springframework.core.env.Environment;
-import org.springframework.stereotype.Component;
-
-@Slf4j
-@RequiredArgsConstructor
-@Component
-public class ProfileConfig {
-
-    private final Environment environment;
-
-    public void printActiveProfiles() {
-
-        log.info("[ActiveProfiles] profiles size : {}", this.environment.getActiveProfiles().length);
-        for (String profile : environment.getActiveProfiles()) {
-            log.info("[ActiveProfiles] profile : {}", profile);
-        }
-    }
-
-}