刘小明
2024-08-21 14b0417bca9050a11792248f5c5c7e7c86e4744f
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();
    }
 
}