更新配置
This commit is contained in:
@@ -18,8 +18,8 @@ public class AdminApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(AdminApplication.class, args);
|
||||
System.out.println("========================================");
|
||||
System.out.println(" 业务管理服务启动成功! 端口: 9002");
|
||||
System.out.println(" Knife4j 文档: http://localhost:9002/doc.html");
|
||||
System.out.println(" 业务管理服务启动成功! 端口: 32002");
|
||||
System.out.println(" Knife4j 文档: http://localhost:32002/doc.html");
|
||||
System.out.println("========================================");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -114,11 +114,11 @@ public class DashboardController {
|
||||
|
||||
// 微服务健康状态:用 TCP 端口检测替代 HTTP(快 10 倍)
|
||||
List<Map<String, Object>> services = new ArrayList<>();
|
||||
services.add(checkTcpPort("网关服务 (Gateway)", "127.0.0.1", 9000));
|
||||
services.add(checkTcpPort("认证服务 (Auth)", "127.0.0.1", 9001));
|
||||
// services.add(checkTcpPort("网关服务 (Gateway)", "127.0.0.1", 32000));
|
||||
// services.add(checkTcpPort("认证服务 (Auth)", "127.0.0.1", 32001));
|
||||
Map<String, Object> adminSvc = new LinkedHashMap<>();
|
||||
adminSvc.put("name", "管理服务 (Admin)");
|
||||
adminSvc.put("port", 9002);
|
||||
adminSvc.put("port", 32002);
|
||||
adminSvc.put("status", "UP");
|
||||
adminSvc.put("responseTime", 0);
|
||||
services.add(adminSvc);
|
||||
|
||||
@@ -33,7 +33,7 @@ import java.util.concurrent.TimeUnit;
|
||||
* 对外开放 API
|
||||
* <p>
|
||||
* Token 一次消费:每个 token 只能用一次,消费后立即失效
|
||||
* API 文档地址:http://服务地址:9002/doc.html → "对外开放API" 分组
|
||||
* API 文档地址:http://服务地址:32002/doc.html → "对外开放API" 分组
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
|
||||
Reference in New Issue
Block a user