19 lines
473 B
Java
19 lines
473 B
Java
package dev.mars3142.fhq.config;
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.Configuration;
|
|
import org.springframework.web.client.RestClient;
|
|
|
|
@Configuration
|
|
public class AppConfig {
|
|
|
|
@Value("${backend.uri}")
|
|
private String baseUri;
|
|
|
|
@Bean
|
|
public RestClient restClient() {
|
|
return RestClient.builder().baseUrl(baseUri).build();
|
|
}
|
|
}
|