We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bfbdc7 commit 337b058Copy full SHA for 337b058
back/src/main/java/com/back/global/ai/config/ImageWebClientConfig.java
@@ -1,5 +1,6 @@
1
package com.back.global.ai.config;
2
3
+import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
4
import org.springframework.context.annotation.Bean;
5
import org.springframework.context.annotation.Configuration;
6
import org.springframework.http.HttpHeaders;
@@ -9,6 +10,7 @@
9
10
public class ImageWebClientConfig {
11
12
@Bean("stabilityWebClient")
13
+ @ConditionalOnProperty(prefix = "ai.image", name = "enabled", havingValue = "true")
14
public WebClient stabilityWebClient(ImageAiConfig imageAiConfig) {
15
return WebClient.builder()
16
.baseUrl(imageAiConfig.getBaseUrl())
0 commit comments