wuzeyu
2024-01-02 5683c6a1ee9839ce3d87265865ca9b284730b9f4
pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/aop/SsoRestTemplateConfiguration.java
@@ -1,16 +1,18 @@
package com.dy.common.aop;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;
/**
 * 为SsoAspect访问单点登录系统提供 RestTemplate
 */
@Configuration
public class SsoRestTemplateConfiguration {
    @Bean
    public RestTemplate restTemplate(RestTemplateBuilder builder){
        return builder.build();
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}