|
@@ -17,6 +17,7 @@ import cn.afterturn.easypoi.word.WordExportUtil;
|
|
import com.backendsys.utils.MD5Util;
|
|
import com.backendsys.utils.MD5Util;
|
|
|
|
|
|
import com.tencentcloudapi.common.Credential;
|
|
import com.tencentcloudapi.common.Credential;
|
|
|
|
+import jakarta.servlet.ServletContext;
|
|
import org.apache.poi.xwpf.usermodel.XWPFDocument;
|
|
import org.apache.poi.xwpf.usermodel.XWPFDocument;
|
|
import org.redisson.api.*;
|
|
import org.redisson.api.*;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -55,7 +56,6 @@ import com.tencentcloudapi.common.CommonClient;
|
|
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
|
|
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping("/api/test")
|
|
@RequestMapping("/api/test")
|
|
@SuppressWarnings({"rawtypes", "unchecked"})
|
|
@SuppressWarnings({"rawtypes", "unchecked"})
|
|
@@ -69,6 +69,15 @@ public class TestController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private ServletContext servletContext;
|
|
|
|
+
|
|
|
|
+ @GetMapping("/tomcat-version")
|
|
|
|
+ public String getTomcatVersion() {
|
|
|
|
+ String serverInfo = servletContext.getServerInfo();
|
|
|
|
+ return "当前Tomcat版本: " + serverInfo;
|
|
|
|
+ }
|
|
|
|
+
|
|
/*
|
|
/*
|
|
// SubmitMediaModeration 提交审核任务
|
|
// SubmitMediaModeration 提交审核任务
|
|
// DescribeMediaModeration 查询审核结果
|
|
// DescribeMediaModeration 查询审核结果
|