feat(config): añadida clase de configuración WebClient con el cliente de Gemini

parent 76a7fe9e
package com.example.apprecetas.cors;
package com.example.apprecetas.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
......
package com.example.apprecetas.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.function.client.WebClient;
@Configuration
public class WebClientConfig {
@Bean
public WebClient geminiClient() {
return WebClient.builder()
.baseUrl("http://localhost:5000")
.build();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment