Fancy
2024-11-01 4a35dea2b0976e7fdb0e2b1a0d7d9b8ac2af0fe4
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();
    }
 
}