去除注解.

This commit is contained in:
lijiahang
2024-07-18 15:39:31 +08:00
parent 48d308b1a8
commit a71456b209
38 changed files with 1 additions and 38 deletions

View File

@@ -29,7 +29,6 @@ import javax.annotation.Resource;
@RestWrapper
@RestController
@RequestMapping("/asset/command-snippet")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class CommandSnippetController {
@Resource

View File

@@ -31,7 +31,6 @@ import java.util.List;
@RestWrapper
@RestController
@RequestMapping("/asset/command-snippet-group")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class CommandSnippetGroupController {
@Resource

View File

@@ -33,7 +33,6 @@ import javax.annotation.Resource;
@RestWrapper
@RestController
@RequestMapping("/asset/exec-command")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class ExecCommandController {
@Resource

View File

@@ -43,7 +43,6 @@ import java.util.List;
@RestWrapper
@RestController
@RequestMapping("/asset/exec-command-log")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class ExecCommandLogController {
private static final String SOURCE = ExecSourceEnum.BATCH.name();

View File

@@ -34,7 +34,6 @@ import java.util.List;
@RestWrapper
@RestController
@RequestMapping("/asset/exec-job")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class ExecJobController {
@Resource

View File

@@ -42,7 +42,6 @@ import java.util.List;
@RestWrapper
@RestController
@RequestMapping("/asset/exec-job-log")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class ExecJobLogController {
private static final String SOURCE = ExecSourceEnum.JOB.name();

View File

@@ -36,7 +36,6 @@ import java.util.List;
@RestWrapper
@RestController
@RequestMapping("/asset/exec-template")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class ExecTemplateController {
@Resource

View File

@@ -34,7 +34,6 @@ import java.util.List;
@RestWrapper
@RestController
@RequestMapping("/asset/host-config")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class HostConfigController {
@Resource

View File

@@ -36,7 +36,6 @@ import java.util.List;
@RestWrapper
@RestController
@RequestMapping("/asset/host-connect-log")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class HostConnectLogController {
@Resource

View File

@@ -37,7 +37,6 @@ import java.util.List;
@RestWrapper
@RestController
@RequestMapping("/asset/host")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class HostController {
@Resource

View File

@@ -29,7 +29,6 @@ import java.util.Map;
@RestWrapper
@RestController
@RequestMapping("/asset/host-extra")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class HostExtraController {
@Resource

View File

@@ -37,7 +37,6 @@ import java.util.Set;
@RestWrapper
@RestController
@RequestMapping("/asset/host-group")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class HostGroupController {
@Resource

View File

@@ -37,7 +37,6 @@ import java.util.List;
@RestWrapper
@RestController
@RequestMapping("/asset/host-identity")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class HostIdentityController {
@Resource

View File

@@ -37,7 +37,6 @@ import java.util.List;
@RestWrapper
@RestController
@RequestMapping("/asset/host-key")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class HostKeyController {
@Resource

View File

@@ -38,7 +38,6 @@ import java.util.List;
@RestWrapper
@RestController
@RequestMapping("/asset/host-sftp")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class HostSftpLogController {
@Resource

View File

@@ -30,7 +30,6 @@ import java.util.List;
@RestWrapper
@RestController
@RequestMapping("/asset/host-terminal")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class HostTerminalController {
@Resource

View File

@@ -27,7 +27,6 @@ import javax.annotation.Resource;
@RestWrapper
@RestController
@RequestMapping("/asset/path-bookmark")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class PathBookmarkController {
@Resource

View File

@@ -31,7 +31,6 @@ import java.util.List;
@RestWrapper
@RestController
@RequestMapping("/asset/path-bookmark-group")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class PathBookmarkGroupController {
@Resource

View File

@@ -38,7 +38,6 @@ import java.util.List;
@RestWrapper
@RestController
@RequestMapping("/asset/upload-task")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class UploadTaskController {
@Resource

View File

@@ -287,7 +287,7 @@ public abstract class BaseExecCommandHandler implements IExecCommandHandler {
*/
protected String getErrorMessage(Exception ex) {
String message;
if (ex instanceof InvalidArgumentException) {
if (ex instanceof InvalidArgumentException || ex instanceof IllegalArgumentException) {
message = ex.getMessage();
} else if (ex instanceof ConnectionRuntimeException) {
message = "连接失败";