From 8130719c71ef38cfb0520a77fddaf192f3c167ee Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期一, 07 八月 2023 18:46:40 +0800
Subject: [PATCH] 修改端口
---
ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java | 13 ++-----------
1 files changed, 2 insertions(+), 11 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java
index c4ac6c3..530885c 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java
@@ -68,7 +68,8 @@
*/
@PostMapping("/common/upload")
public AjaxResult uploadFile(MultipartFile file) throws Exception {
- int tomcatPort = getTomcatPort();
+ //杩欎釜鐪佷汉姘戞槸8099锛屾墍浠ョ洿鎺ュ啓姝�
+ int tomcatPort = 8099;
try {
// 涓婁紶鏂囦欢璺緞
String filePath = RuoYiConfig.getUploadPath();
@@ -89,16 +90,6 @@
}
}
- private static int getTomcatPort() {
- int port = 0;
- Tomcat tomcat = new Tomcat();
- Connector connector = tomcat.getConnector();
- if (connector != null) {
- AbstractProtocol protocol = (AbstractProtocol) connector.getProtocolHandler();
- port = protocol.getPort();
- }
- return port;
- }
/**
* 鏈湴璧勬簮閫氱敤涓嬭浇
--
Gitblit v1.9.3