|
@@ -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);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
-}
|