⚡ 去除注解.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -29,7 +29,6 @@ import javax.annotation.Resource;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/asset/command-snippet")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class CommandSnippetController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -31,7 +31,6 @@ import java.util.List;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/asset/command-snippet-group")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class CommandSnippetGroupController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -33,7 +33,6 @@ import javax.annotation.Resource;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/asset/exec-command")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class ExecCommandController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -34,7 +34,6 @@ import java.util.List;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/asset/exec-job")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class ExecJobController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -36,7 +36,6 @@ import java.util.List;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/asset/exec-template")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class ExecTemplateController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -34,7 +34,6 @@ import java.util.List;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/asset/host-config")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class HostConfigController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -36,7 +36,6 @@ import java.util.List;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/asset/host-connect-log")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class HostConnectLogController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -37,7 +37,6 @@ import java.util.List;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/asset/host")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class HostController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -29,7 +29,6 @@ import java.util.Map;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/asset/host-extra")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class HostExtraController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -37,7 +37,6 @@ import java.util.Set;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/asset/host-group")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class HostGroupController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -37,7 +37,6 @@ import java.util.List;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/asset/host-identity")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class HostIdentityController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -37,7 +37,6 @@ import java.util.List;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/asset/host-key")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class HostKeyController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -38,7 +38,6 @@ import java.util.List;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/asset/host-sftp")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class HostSftpLogController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -30,7 +30,6 @@ import java.util.List;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/asset/host-terminal")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class HostTerminalController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -27,7 +27,6 @@ import javax.annotation.Resource;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/asset/path-bookmark")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class PathBookmarkController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -31,7 +31,6 @@ import java.util.List;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/asset/path-bookmark-group")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class PathBookmarkGroupController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -38,7 +38,6 @@ import java.util.List;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/asset/upload-task")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class UploadTaskController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -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 = "连接失败";
|
||||
|
||||
@@ -31,7 +31,6 @@ import javax.servlet.http.HttpServletRequest;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/infra/auth")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class AuthenticationController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -36,7 +36,6 @@ import java.util.List;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/infra/dict-key")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class DictKeyController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -40,7 +40,6 @@ import java.util.Map;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/infra/dict-value")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class DictValueController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -32,7 +32,6 @@ import java.util.stream.Collectors;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/infra/expression")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class ExpressionController {
|
||||
|
||||
@PermitAll
|
||||
|
||||
@@ -27,7 +27,6 @@ import javax.annotation.Resource;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/infra/favorite")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class FavoriteController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -33,7 +33,6 @@ import javax.annotation.Resource;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/infra/history-value")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class HistoryValueController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -39,7 +39,6 @@ import java.util.List;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/infra/mine")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class MineController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -34,7 +34,6 @@ import java.util.List;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/infra/operator-log")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class OperatorLogController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -32,7 +32,6 @@ import java.util.List;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/infra/permission")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class PermissionController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -29,7 +29,6 @@ import java.util.Map;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/infra/preference")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class PreferenceController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -36,7 +36,6 @@ import java.util.List;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/infra/system-menu")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class SystemMenuController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -30,7 +30,6 @@ import java.util.Map;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/infra/system-message")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class SystemMessageController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -40,7 +40,6 @@ import java.util.List;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/infra/system-role")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class SystemRoleController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -28,7 +28,6 @@ import javax.annotation.Resource;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/infra/system-setting")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class SystemSettingController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -41,7 +41,6 @@ import java.util.List;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/infra/system-user")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class SystemUserController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -29,7 +29,6 @@ import java.util.List;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/infra/tag")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class TagController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -25,7 +25,6 @@ import java.util.List;
|
||||
@RestWrapper
|
||||
@RestController
|
||||
@RequestMapping("/infra/tips")
|
||||
@SuppressWarnings({"ELValidationInJSP", "SpringElInspection"})
|
||||
public class TipsController {
|
||||
|
||||
@Resource
|
||||
|
||||
Reference in New Issue
Block a user