去除注解.

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

@@ -44,7 +44,6 @@ import java.util.List;
@RestWrapper
@RestController
@RequestMapping("/${package.ModuleName}/${typeHyphen}")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
#if(${superControllerClass})
public class ${table.controllerName} extends ${superControllerClass} {
#else

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 = "连接失败";

View File

@@ -31,7 +31,6 @@ import javax.servlet.http.HttpServletRequest;
@RestWrapper
@RestController
@RequestMapping("/infra/auth")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class AuthenticationController {
@Resource

View File

@@ -36,7 +36,6 @@ import java.util.List;
@RestWrapper
@RestController
@RequestMapping("/infra/dict-key")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class DictKeyController {
@Resource

View File

@@ -40,7 +40,6 @@ import java.util.Map;
@RestWrapper
@RestController
@RequestMapping("/infra/dict-value")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class DictValueController {
@Resource

View File

@@ -32,7 +32,6 @@ import java.util.stream.Collectors;
@RestWrapper
@RestController
@RequestMapping("/infra/expression")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class ExpressionController {
@PermitAll

View File

@@ -27,7 +27,6 @@ import javax.annotation.Resource;
@RestWrapper
@RestController
@RequestMapping("/infra/favorite")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class FavoriteController {
@Resource

View File

@@ -33,7 +33,6 @@ import javax.annotation.Resource;
@RestWrapper
@RestController
@RequestMapping("/infra/history-value")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class HistoryValueController {
@Resource

View File

@@ -39,7 +39,6 @@ import java.util.List;
@RestWrapper
@RestController
@RequestMapping("/infra/mine")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class MineController {
@Resource

View File

@@ -34,7 +34,6 @@ import java.util.List;
@RestWrapper
@RestController
@RequestMapping("/infra/operator-log")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class OperatorLogController {
@Resource

View File

@@ -32,7 +32,6 @@ import java.util.List;
@RestWrapper
@RestController
@RequestMapping("/infra/permission")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class PermissionController {
@Resource

View File

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

View File

@@ -36,7 +36,6 @@ import java.util.List;
@RestWrapper
@RestController
@RequestMapping("/infra/system-menu")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class SystemMenuController {
@Resource

View File

@@ -30,7 +30,6 @@ import java.util.Map;
@RestWrapper
@RestController
@RequestMapping("/infra/system-message")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class SystemMessageController {
@Resource

View File

@@ -40,7 +40,6 @@ import java.util.List;
@RestWrapper
@RestController
@RequestMapping("/infra/system-role")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class SystemRoleController {
@Resource

View File

@@ -28,7 +28,6 @@ import javax.annotation.Resource;
@RestWrapper
@RestController
@RequestMapping("/infra/system-setting")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class SystemSettingController {
@Resource

View File

@@ -41,7 +41,6 @@ import java.util.List;
@RestWrapper
@RestController
@RequestMapping("/infra/system-user")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class SystemUserController {
@Resource

View File

@@ -29,7 +29,6 @@ import java.util.List;
@RestWrapper
@RestController
@RequestMapping("/infra/tag")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class TagController {
@Resource

View File

@@ -25,7 +25,6 @@ import java.util.List;
@RestWrapper
@RestController
@RequestMapping("/infra/tips")
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
public class TipsController {
@Resource