Fancy
2024-07-10 d3bb6745eb1da8f8c244f9393209e048395867f6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.dy.common.aop;
 
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(){
        return new RestTemplate();
    }
 
}