Код: Выделить всё
spring.http.service.client..base-urlКод: Выделить всё
IllegalArgumentException: URI with undefined schemeКод: Выделить всё
@ClientRegistrationId("oauth")
public interface MyClient {
@GetExchange(url = "/{a}/b")
List getIt(@PathVariable("a") String a, @PathVariable("b") String b);
}
Код: Выделить всё
@Configuration(proxyBeanMethods = false)
@ImportHttpServices(group = "mygroup", types = MyClient.class)
public class ClientConfig {
@Bean
OAuth2RestClientHttpServiceGroupConfigurer securityConfigurer(
OAuth2AuthorizedClientManager manager) {
return OAuth2RestClientHttpServiceGroupConfigurer.from(manager);
}
}
Код: Выделить всё
spring:
http:
service:
client:
mygroup:
base-url: https://api.dev.client/v1
Подробнее здесь: https://stackoverflow.com/questions/798 ... properties
Мобильная версия