diff options
author | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2024-01-02 13:45:03 +0100 |
---|---|---|
committer | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2024-01-02 13:45:03 +0100 |
commit | ca3aa8f05227638b96b0ae0745574c8067a63def (patch) | |
tree | c39b80e7e766f214b7fe1b025e2e6f562a4e6acc /aai-traversal/src/main/java | |
parent | ced3e17c7366a0f5fb167f3124ce7f7031c42771 (diff) |
Update spring-boot to 2.3
- update spring-boot to 2.3.12.RELEASE
- replace deprecated properties
Issue-ID: AAI-3680
Change-Id: Icd983c020fd62f7073f8ae61d3d4745db48dc660
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'aai-traversal/src/main/java')
-rw-r--r-- | aai-traversal/src/main/java/org/onap/aai/web/JerseyConfiguration.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/aai-traversal/src/main/java/org/onap/aai/web/JerseyConfiguration.java b/aai-traversal/src/main/java/org/onap/aai/web/JerseyConfiguration.java index 0bfbd9d..e430e77 100644 --- a/aai-traversal/src/main/java/org/onap/aai/web/JerseyConfiguration.java +++ b/aai-traversal/src/main/java/org/onap/aai/web/JerseyConfiguration.java @@ -43,6 +43,7 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Profile; import org.springframework.core.env.Environment; +import org.springframework.core.env.Profiles; @Configuration public class JerseyConfiguration { @@ -115,7 +116,7 @@ public class JerseyConfiguration { private boolean isEnabledByActiveProfiles(AnnotatedElement annotatedElement) { boolean result = !annotatedElement.isAnnotationPresent(Profile.class) - || environment.acceptsProfiles(annotatedElement.getAnnotation(Profile.class).value()); + || environment.acceptsProfiles(Profiles.of(annotatedElement.getAnnotation(Profile.class).value())); logger.debug("isEnabledByActiveProfiles: annotatedElement: " + annotatedElement.toString() + " result=" + result); return result; |