xinwei #26
@ -22,7 +22,7 @@ import java.nio.charset.StandardCharsets;
|
|||||||
@Component
|
@Component
|
||||||
public class OAuth2Client {
|
public class OAuth2Client {
|
||||||
|
|
||||||
private static final String BASE_URL = "http://127.0.0.1:48080/admin-api/system/oauth2";
|
private static final String BASE_URL = "https://mt.ptzykjgs.com/admin-api/system/oauth2";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 租户编号
|
* 租户编号
|
||||||
|
@ -21,7 +21,7 @@ import org.springframework.web.client.RestTemplate;
|
|||||||
@Component
|
@Component
|
||||||
public class UserClient {
|
public class UserClient {
|
||||||
|
|
||||||
private static final String BASE_URL = "http://127.0.0.1:48080/admin-api/system/oauth2/user";
|
private static final String BASE_URL = "https://mt.ptzykjgs.com/admin-api/system/oauth2/user";
|
||||||
|
|
||||||
// @Resource // 可优化,注册一个 RestTemplate Bean,然后注入
|
// @Resource // 可优化,注册一个 RestTemplate Bean,然后注入
|
||||||
private final RestTemplate restTemplate = new RestTemplate();
|
private final RestTemplate restTemplate = new RestTemplate();
|
||||||
|
Loading…
Reference in New Issue
Block a user