diff --git a/nladmin-system/nlsso-server/pom.xml b/nladmin-system/nlsso-server/pom.xml
index 8ad737a..ed472bd 100644
--- a/nladmin-system/nlsso-server/pom.xml
+++ b/nladmin-system/nlsso-server/pom.xml
@@ -32,44 +32,12 @@
-
-
- org.flywaydb
- flyway-core
-
-
-
- org.dromara.dynamictp
- dynamic-tp-spring-boot-starter-adapter-webserver
- 1.1.6.1
-
-
com.yomahub
tlog-all-spring-boot-starter
1.5.0
-
-
-
- org.fusesource.jansi
- jansi
- 1.17.1
-
-
-
- com.microsoft.sqlserver
- mssql-jdbc
- 6.4.0.jre8
- runtime
-
-
-
- com.oracle.database.jdbc
- ojdbc5
- 11.2.0.4
-
com.baomidou
@@ -120,6 +88,11 @@
mybatis-plus-boot-starter
3.4.0
+
+
+
+
+
org.apache.velocity
velocity-engine-core
@@ -130,12 +103,6 @@
mybatis-plus-generator
3.4.0
-
-
-
-
-
-
cn.dev33
sa-token-spring-boot-starter
@@ -157,7 +124,6 @@
sa-token-dao-redis
1.31.0
-
cn.dev33
@@ -165,19 +131,16 @@
1.33.0
-
org.springframework.boot
spring-boot-starter-cache
-
org.springframework.boot
spring-boot-starter-data-redis
-
org.apache.commons
@@ -188,21 +151,12 @@
org.apache.commons
commons-lang3
-
-
-
- org.bgee.log4jdbc-log4j2
- log4jdbc-log4j2-jdbc4.1
- ${log4jdbc.version}
-
-
mysql
mysql-connector-java
runtime
-
com.alibaba
@@ -214,19 +168,12 @@
mica-ip2region
2.5.6
-
-
- org.lionsoul
- ip2region
- 1.7.2
-
org.projectlombok
lombok
true
-
com.alibaba
@@ -248,11 +195,6 @@
poi-ooxml
3.17
-
- xerces
- xercesImpl
- 2.12.0
-
@@ -260,19 +202,6 @@
fastjson
${fastjson.version}
-
-
-
- org.mapstruct
- mapstruct
- ${mapstruct.version}
-
-
- org.mapstruct
- mapstruct-processor
- ${mapstruct.version}
- provided
-
javax.inject
javax.inject
@@ -285,14 +214,6 @@
easy-captcha
1.6.2
-
-
-
- nl.basjes.parse.useragent
- yauaa
- 5.23
-
-
com.github.pagehelper
pagehelper-spring-boot-starter
@@ -304,33 +225,6 @@
-
-
- eu.bitwalker
- UserAgentUtils
- 1.21
-
-
-
-
- com.hynnet
- jxl
- 2.6.12.1
-
-
-
- commons-beanutils
- commons-beanutils-core
- 1.8.0
-
-
-
- org.aspectj
- aspectjweaver
- 1.9.2
-
-
-
org.springframework.boot
spring-boot-starter-aop
@@ -347,26 +241,12 @@
org.springframework.boot
spring-boot-starter-freemarker
-
commons-configuration
commons-configuration
${configuration.version}
-
-
- com.alicp.jetcache
- jetcache-starter-redis
- 2.7.3
-
-
-
- redis.clients
- jedis
- 4.3.1
-
-
@@ -392,32 +272,17 @@
jjwt-jackson
${jjwt.version}
-
org.quartz-scheduler
quartz
-
-
-
- ch.ethz.ganymed
- ganymed-ssh2
- build210
-
com.jcraft
jsch
0.1.55
-
-
- com.github.oshi
- oshi-core
- 5.0.1
-
-
org.apache.httpcomponents
httpclient
@@ -439,7 +304,6 @@
commons-io
2.8.0
-
org.apache.lucene
@@ -480,7 +344,6 @@
redisson-spring-boot-starter
3.16.4
-
diff --git a/nladmin-system/nlsso-server/src/main/java/org/nl/AppRun.java b/nladmin-system/nlsso-server/src/main/java/org/nl/AppRun.java
index 9172ab7..76e4a63 100644
--- a/nladmin-system/nlsso-server/src/main/java/org/nl/AppRun.java
+++ b/nladmin-system/nlsso-server/src/main/java/org/nl/AppRun.java
@@ -1,9 +1,9 @@
package org.nl;
import cn.dev33.satoken.annotation.SaIgnore;
-import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
-import com.alicp.jetcache.anno.config.EnableMethodCache;
-import org.dromara.dynamictp.core.spring.EnableDynamicTp;
+//import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
+//import com.alicp.jetcache.anno.config.EnableMethodCache;
+//import org.dromara.dynamictp.core.spring.EnableDynamicTp;
import org.mybatis.spring.annotation.MapperScan;
import org.nl.config.SpringContextHolder;
import org.springframework.boot.ApplicationArguments;
@@ -24,14 +24,11 @@ import org.springframework.web.bind.annotation.RestController;
*/
@EnableAsync
@RestController
-@EnableDynamicTp
@SpringBootApplication(exclude = {
org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class
})
@ServletComponentScan
@EnableTransactionManagement
-@EnableMethodCache(basePackages = "org.nl")
-@EnableCreateCacheAnnotation
@MapperScan("org.nl.**.mapper")
public class AppRun implements ApplicationRunner {
diff --git a/nladmin-system/nlsso-server/src/main/java/org/nl/common/mnt/util/ScpClientUtil.java b/nladmin-system/nlsso-server/src/main/java/org/nl/common/mnt/util/ScpClientUtil.java
index 0df287d..1662bd0 100644
--- a/nladmin-system/nlsso-server/src/main/java/org/nl/common/mnt/util/ScpClientUtil.java
+++ b/nladmin-system/nlsso-server/src/main/java/org/nl/common/mnt/util/ScpClientUtil.java
@@ -1,105 +1,105 @@
-/*
- * Copyright 2019-2020 Zheng Jie
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.nl.common.mnt.util;
-
-import ch.ethz.ssh2.Connection;
-import ch.ethz.ssh2.SCPClient;
-import com.google.common.collect.Maps;
-
-import java.io.IOException;
-import java.util.Map;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-/**
- * 远程执行linux命令
- * @author: ZhangHouYing
- * @date: 2019-08-10 10:06
- */
-public class ScpClientUtil {
-
- static private Map instance = Maps.newHashMap();
-
- static synchronized public ScpClientUtil getInstance(String ip, int port, String username, String password) {
- if (instance.get(ip) == null) {
- instance.put(ip, new ScpClientUtil(ip, port, username, password));
- }
- return instance.get(ip);
- }
-
- public ScpClientUtil(String ip, int port, String username, String password) {
- this.ip = ip;
- this.port = port;
- this.username = username;
- this.password = password;
- }
-
- public void getFile(String remoteFile, String localTargetDirectory) {
- Connection conn = new Connection(ip, port);
- try {
- conn.connect();
- boolean isAuthenticated = conn.authenticateWithPassword(username, password);
- if (!isAuthenticated) {
- System.err.println("authentication failed");
- }
- SCPClient client = new SCPClient(conn);
- client.get(remoteFile, localTargetDirectory);
- } catch (IOException ex) {
- Logger.getLogger(SCPClient.class.getName()).log(Level.SEVERE, null, ex);
- }finally{
- conn.close();
- }
- }
-
- public void putFile(String localFile, String remoteTargetDirectory) {
- putFile(localFile, null, remoteTargetDirectory);
- }
-
- public void putFile(String localFile, String remoteFileName, String remoteTargetDirectory) {
- putFile(localFile, remoteFileName, remoteTargetDirectory,null);
- }
-
- public void putFile(String localFile, String remoteFileName, String remoteTargetDirectory, String mode) {
- Connection conn = new Connection(ip, port);
- try {
- conn.connect();
- boolean isAuthenticated = conn.authenticateWithPassword(username, password);
- if (!isAuthenticated) {
- System.err.println("authentication failed");
- }
- SCPClient client = new SCPClient(conn);
- if ((mode == null) || (mode.length() == 0)) {
- mode = "0600";
- }
- if (remoteFileName == null) {
- client.put(localFile, remoteTargetDirectory);
- } else {
- client.put(localFile, remoteFileName, remoteTargetDirectory, mode);
- }
- } catch (IOException ex) {
- Logger.getLogger(ScpClientUtil.class.getName()).log(Level.SEVERE, null, ex);
- }finally{
- conn.close();
- }
- }
-
- private String ip;
- private int port;
- private String username;
- private String password;
-
-
-}
+///*
+// * Copyright 2019-2020 Zheng Jie
+// *
+// * Licensed under the Apache License, Version 2.0 (the "License");
+// * you may not use this file except in compliance with the License.
+// * You may obtain a copy of the License at
+// *
+// * http://www.apache.org/licenses/LICENSE-2.0
+// *
+// * Unless required by applicable law or agreed to in writing, software
+// * distributed under the License is distributed on an "AS IS" BASIS,
+// * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// * See the License for the specific language governing permissions and
+// * limitations under the License.
+// */
+//package org.nl.common.mnt.util;
+//
+//import ch.ethz.ssh2.Connection;
+//import ch.ethz.ssh2.SCPClient;
+//import com.google.common.collect.Maps;
+//
+//import java.io.IOException;
+//import java.util.Map;
+//import java.util.logging.Level;
+//import java.util.logging.Logger;
+//
+///**
+// * 远程执行linux命令
+// * @author: ZhangHouYing
+// * @date: 2019-08-10 10:06
+// */
+//public class ScpClientUtil {
+//
+// static private Map instance = Maps.newHashMap();
+//
+// static synchronized public ScpClientUtil getInstance(String ip, int port, String username, String password) {
+// if (instance.get(ip) == null) {
+// instance.put(ip, new ScpClientUtil(ip, port, username, password));
+// }
+// return instance.get(ip);
+// }
+//
+// public ScpClientUtil(String ip, int port, String username, String password) {
+// this.ip = ip;
+// this.port = port;
+// this.username = username;
+// this.password = password;
+// }
+//
+// public void getFile(String remoteFile, String localTargetDirectory) {
+// Connection conn = new Connection(ip, port);
+// try {
+// conn.connect();
+// boolean isAuthenticated = conn.authenticateWithPassword(username, password);
+// if (!isAuthenticated) {
+// System.err.println("authentication failed");
+// }
+// SCPClient client = new SCPClient(conn);
+// client.get(remoteFile, localTargetDirectory);
+// } catch (IOException ex) {
+// Logger.getLogger(SCPClient.class.getName()).log(Level.SEVERE, null, ex);
+// }finally{
+// conn.close();
+// }
+// }
+//
+// public void putFile(String localFile, String remoteTargetDirectory) {
+// putFile(localFile, null, remoteTargetDirectory);
+// }
+//
+// public void putFile(String localFile, String remoteFileName, String remoteTargetDirectory) {
+// putFile(localFile, remoteFileName, remoteTargetDirectory,null);
+// }
+//
+// public void putFile(String localFile, String remoteFileName, String remoteTargetDirectory, String mode) {
+// Connection conn = new Connection(ip, port);
+// try {
+// conn.connect();
+// boolean isAuthenticated = conn.authenticateWithPassword(username, password);
+// if (!isAuthenticated) {
+// System.err.println("authentication failed");
+// }
+// SCPClient client = new SCPClient(conn);
+// if ((mode == null) || (mode.length() == 0)) {
+// mode = "0600";
+// }
+// if (remoteFileName == null) {
+// client.put(localFile, remoteTargetDirectory);
+// } else {
+// client.put(localFile, remoteFileName, remoteTargetDirectory, mode);
+// }
+// } catch (IOException ex) {
+// Logger.getLogger(ScpClientUtil.class.getName()).log(Level.SEVERE, null, ex);
+// }finally{
+// conn.close();
+// }
+// }
+//
+// private String ip;
+// private int port;
+// private String username;
+// private String password;
+//
+//
+//}
diff --git a/nladmin-system/nlsso-server/src/main/java/org/nl/common/utils/DesUtil.java b/nladmin-system/nlsso-server/src/main/java/org/nl/common/utils/DesUtil.java
index d31d301..812fda8 100644
--- a/nladmin-system/nlsso-server/src/main/java/org/nl/common/utils/DesUtil.java
+++ b/nladmin-system/nlsso-server/src/main/java/org/nl/common/utils/DesUtil.java
@@ -1,138 +1,138 @@
-package org.nl.common.utils;
-
-//
-// Source code recreated from a .class file by IntelliJ IDEA
-// (powered by FernFlower decompiler)
-//
-
-
-import sun.misc.BASE64Decoder;
-import sun.misc.BASE64Encoder;
-
-import javax.crypto.Cipher;
-import javax.crypto.SecretKey;
-import javax.crypto.SecretKeyFactory;
-import javax.crypto.spec.DESKeySpec;
-import javax.crypto.spec.IvParameterSpec;
-import java.io.IOException;
-import java.security.SecureRandom;
-
-/**
- *
- * Des加密解密算法工具类
- *
- *
- * @author lyd
- * @since 2023-05-03
- */
-public class DesUtil {
- /**
- * 加密算法是des
- */
- private static final String ALGORITHM = "DES";
- /**
- * 转换格式
- */
- private static final String TRANSFORMATION = "DES/CBC/PKCS5Padding";
-
- /**
- * 加密
- *
- * @param src 数据源
- * @param key 密钥,长度必须是8的倍数
- * @return 返回加密后的数据
- * @throws Exception 出错
- */
- public static byte[] encrypt(byte[] src, byte[] key) throws Exception {
- // DES算法要求有一个可信任的随机数源
- SecureRandom sr = new SecureRandom();
- // 从原始密匙数据建立 DESKeySpec对象
- DESKeySpec dks = new DESKeySpec(key);
- // 建立一个密匙工厂,然后用它把DESKeySpec转换成
- // 一个SecretKey对象
- SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(ALGORITHM);
- SecretKey securekey = keyFactory.generateSecret(dks);
- // Cipher对象实际完成加密操作
- Cipher cipher = Cipher.getInstance(TRANSFORMATION);
- // 用密匙原始化Cipher对象
- cipher.init(Cipher.ENCRYPT_MODE, securekey, new IvParameterSpec(key));
- // 现在,获取数据并加密
- // 正式执行加密操作
- return cipher.doFinal(src);
- }
-
- /**
- * 解密
- *
- * @param src 数据源
- * @param key 密钥,长度必须是8的倍数
- * @return 返回解密后的原始数据
- * @throws Exception 出错
- */
- public static byte[] decrypt(byte[] src, byte[] key) throws Exception {
- // DES算法要求有一个可信任的随机数源
- SecureRandom sr = new SecureRandom();
- // 从原始密匙数据建立一个DESKeySpec对象
- DESKeySpec dks = new DESKeySpec(key);
- // 建立一个密匙工厂,然后用它把DESKeySpec对象转换成
- // 一个SecretKey对象
- SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(ALGORITHM);
- SecretKey securekey = keyFactory.generateSecret(dks);
- // Cipher对象实际完成解密操作
- Cipher cipher = Cipher.getInstance(TRANSFORMATION);
- // 用密匙原始化Cipher对象
- cipher.init(Cipher.DECRYPT_MODE, securekey, new IvParameterSpec(key));
- // 现在,获取数据并解密
- // 正式执行解密操作
- return cipher.doFinal(src);
- }
-
- /**
- * Description 根据键值进行加密
- *
- * @param data
- * @param key 加密键byte数组
- * @return
- * @throws Exception
- */
- public static String encrypt(String data, String key) throws Exception {
- byte[] bt = encrypt(data.getBytes("UTF-8"), key.getBytes("UTF-8"));
-
- BASE64Encoder encoder = new BASE64Encoder();
- return encoder.encode(bt);
-
- //return new String(Base64.encodeBase64(bt), "UTF-8");
- }
-
- /**
- * Description 根据键值进行解密
- *
- * @param data
- * @param key 加密键byte数组
- * @return
- * @throws IOException
- * @throws Exception
- */
- public static String decrypt(String data, String key) throws Exception {
- if (data == null)
- return null;
- BASE64Decoder decoder = new BASE64Decoder();
- byte[] buf = decoder.decodeBuffer(data);
-
- byte[] bt = decrypt(buf, key.getBytes("UTF-8"));
- return new String(bt, "UTF-8");
- }
-
-
- public static void main(String[] args) throws Exception {
- //uL8fXioyU2M=
- String key = "11111111";
- String pp = encrypt("123456", key);
- System.out.println("加密:" + pp);
-
- String mm2 = decrypt(pp, key);
- System.out.println("解密:" + mm2);
-
- }
-
-}
+//package org.nl.common.utils;
+//
+////
+//// Source code recreated from a .class file by IntelliJ IDEA
+//// (powered by FernFlower decompiler)
+////
+//
+//
+//import sun.misc.BASE64Decoder;
+//import sun.misc.BASE64Encoder;
+//
+//import javax.crypto.Cipher;
+//import javax.crypto.SecretKey;
+//import javax.crypto.SecretKeyFactory;
+//import javax.crypto.spec.DESKeySpec;
+//import javax.crypto.spec.IvParameterSpec;
+//import java.io.IOException;
+//import java.security.SecureRandom;
+//
+///**
+// *
+// * Des加密解密算法工具类
+// *
+// *
+// * @author lyd
+// * @since 2023-05-03
+// */
+//public class DesUtil {
+// /**
+// * 加密算法是des
+// */
+// private static final String ALGORITHM = "DES";
+// /**
+// * 转换格式
+// */
+// private static final String TRANSFORMATION = "DES/CBC/PKCS5Padding";
+//
+// /**
+// * 加密
+// *
+// * @param src 数据源
+// * @param key 密钥,长度必须是8的倍数
+// * @return 返回加密后的数据
+// * @throws Exception 出错
+// */
+// public static byte[] encrypt(byte[] src, byte[] key) throws Exception {
+// // DES算法要求有一个可信任的随机数源
+// SecureRandom sr = new SecureRandom();
+// // 从原始密匙数据建立 DESKeySpec对象
+// DESKeySpec dks = new DESKeySpec(key);
+// // 建立一个密匙工厂,然后用它把DESKeySpec转换成
+// // 一个SecretKey对象
+// SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(ALGORITHM);
+// SecretKey securekey = keyFactory.generateSecret(dks);
+// // Cipher对象实际完成加密操作
+// Cipher cipher = Cipher.getInstance(TRANSFORMATION);
+// // 用密匙原始化Cipher对象
+// cipher.init(Cipher.ENCRYPT_MODE, securekey, new IvParameterSpec(key));
+// // 现在,获取数据并加密
+// // 正式执行加密操作
+// return cipher.doFinal(src);
+// }
+//
+// /**
+// * 解密
+// *
+// * @param src 数据源
+// * @param key 密钥,长度必须是8的倍数
+// * @return 返回解密后的原始数据
+// * @throws Exception 出错
+// */
+// public static byte[] decrypt(byte[] src, byte[] key) throws Exception {
+// // DES算法要求有一个可信任的随机数源
+// SecureRandom sr = new SecureRandom();
+// // 从原始密匙数据建立一个DESKeySpec对象
+// DESKeySpec dks = new DESKeySpec(key);
+// // 建立一个密匙工厂,然后用它把DESKeySpec对象转换成
+// // 一个SecretKey对象
+// SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(ALGORITHM);
+// SecretKey securekey = keyFactory.generateSecret(dks);
+// // Cipher对象实际完成解密操作
+// Cipher cipher = Cipher.getInstance(TRANSFORMATION);
+// // 用密匙原始化Cipher对象
+// cipher.init(Cipher.DECRYPT_MODE, securekey, new IvParameterSpec(key));
+// // 现在,获取数据并解密
+// // 正式执行解密操作
+// return cipher.doFinal(src);
+// }
+//
+// /**
+// * Description 根据键值进行加密
+// *
+// * @param data
+// * @param key 加密键byte数组
+// * @return
+// * @throws Exception
+// */
+// public static String encrypt(String data, String key) throws Exception {
+// byte[] bt = encrypt(data.getBytes("UTF-8"), key.getBytes("UTF-8"));
+//
+// BASE64Encoder encoder = new BASE64Encoder();
+// return encoder.encode(bt);
+//
+// //return new String(Base64.encodeBase64(bt), "UTF-8");
+// }
+//
+// /**
+// * Description 根据键值进行解密
+// *
+// * @param data
+// * @param key 加密键byte数组
+// * @return
+// * @throws IOException
+// * @throws Exception
+// */
+// public static String decrypt(String data, String key) throws Exception {
+// if (data == null)
+// return null;
+// BASE64Decoder decoder = new BASE64Decoder();
+// byte[] buf = decoder.decodeBuffer(data);
+//
+// byte[] bt = decrypt(buf, key.getBytes("UTF-8"));
+// return new String(bt, "UTF-8");
+// }
+//
+//
+// public static void main(String[] args) throws Exception {
+// //uL8fXioyU2M=
+// String key = "11111111";
+// String pp = encrypt("123456", key);
+// System.out.println("加密:" + pp);
+//
+// String mm2 = decrypt(pp, key);
+// System.out.println("解密:" + mm2);
+//
+// }
+//
+//}
diff --git a/nladmin-system/nlsso-server/src/main/java/org/nl/common/utils/StringUtils.java b/nladmin-system/nlsso-server/src/main/java/org/nl/common/utils/StringUtils.java
index 86fff98..43f872b 100644
--- a/nladmin-system/nlsso-server/src/main/java/org/nl/common/utils/StringUtils.java
+++ b/nladmin-system/nlsso-server/src/main/java/org/nl/common/utils/StringUtils.java
@@ -21,8 +21,6 @@ import cn.hutool.json.JSONUtil;
import lombok.extern.slf4j.Slf4j;
import net.dreamlu.mica.ip2region.core.Ip2regionSearcher;
import net.dreamlu.mica.ip2region.core.IpInfo;
-import nl.basjes.parse.useragent.UserAgent;
-import nl.basjes.parse.useragent.UserAgentAnalyzer;
import org.nl.config.ElAdminProperties;
import org.nl.config.SpringContextHolder;
@@ -50,13 +48,6 @@ public class StringUtils {
private final static Ip2regionSearcher IP_SEARCHER = SpringContextHolder.getBean(Ip2regionSearcher.class);
- private static final UserAgentAnalyzer USER_AGENT_ANALYZER = UserAgentAnalyzer
- .newBuilder()
- .hideMatcherLoadStats()
- .withCache(10000)
- .withField(UserAgent.AGENT_NAME_VERSION)
- .build();
-
/**
* 驼峰命名法工具
*
@@ -209,10 +200,9 @@ public class StringUtils {
return null;
}
-
+ //浏览器信息
public static String getBrowser(HttpServletRequest request) {
- UserAgent.ImmutableUserAgent userAgent = USER_AGENT_ANALYZER.parse(request.getHeader("User-Agent"));
- return userAgent.get(UserAgent.AGENT_NAME_VERSION).getValue();
+ return "";
}
/**
diff --git a/nladmin-system/nlsso-server/src/main/java/org/nl/config/redis/RedisConvert.java b/nladmin-system/nlsso-server/src/main/java/org/nl/config/redis/RedisConvert.java
deleted file mode 100644
index 808005e..0000000
--- a/nladmin-system/nlsso-server/src/main/java/org/nl/config/redis/RedisConvert.java
+++ /dev/null
@@ -1,41 +0,0 @@
-package org.nl.config.redis;
-
-import cn.hutool.core.util.StrUtil;
-import org.mapstruct.Mapper;
-import org.mapstruct.factory.Mappers;
-import org.nl.system.service.redis.vo.RedisMonitorRespVO;
-
-import java.util.ArrayList;
-import java.util.Properties;
-
-/**
- * @Author: lyd
- * @Description: redis---Spring Boot 对象转换 MapStruct
- * @Date: 2022-08-04
- */
-@Mapper
-public interface RedisConvert {
-
- RedisConvert INSTANCE = Mappers.getMapper(RedisConvert.class);
-
- /**
- * 创建
- * @param info
- * @param dbSize
- * @param commandStats
- * @return RedisMonitorRespVO
- */
- default RedisMonitorRespVO build(Properties info, Long dbSize, Properties commandStats) {
- RedisMonitorRespVO respVO = RedisMonitorRespVO.builder().info(info).dbSize(dbSize)
- .commandStats(new ArrayList<>(commandStats.size())).build();
- commandStats.forEach((key, value) -> {
- respVO.getCommandStats().add(RedisMonitorRespVO.CommandStat.builder()
- .command(StrUtil.subAfter((String) key, "cmdstat_", false))
- .calls(Integer.valueOf(StrUtil.subBetween((String) value, "calls=", ",")))
- .usec(Long.valueOf(StrUtil.subBetween((String) value, "usec=", ",")))
- .build());
- });
- return respVO;
- }
-
-}
diff --git a/nladmin-system/nlsso-server/src/main/java/org/nl/config/thread/ThreadMonitorCollector.java b/nladmin-system/nlsso-server/src/main/java/org/nl/config/thread/ThreadMonitorCollector.java
index 53889fc..9494c8e 100644
--- a/nladmin-system/nlsso-server/src/main/java/org/nl/config/thread/ThreadMonitorCollector.java
+++ b/nladmin-system/nlsso-server/src/main/java/org/nl/config/thread/ThreadMonitorCollector.java
@@ -1,30 +1,30 @@
-package org.nl.config.thread;
-
-import lombok.extern.slf4j.Slf4j;
-import org.dromara.dynamictp.common.entity.ThreadPoolStats;
-import org.dromara.dynamictp.core.monitor.collector.AbstractCollector;
-
-/**
- * @Author: lyd
- * @Description: 线程监控
- * @Date: 2023/12/25
- */
-@Slf4j
-public class ThreadMonitorCollector extends AbstractCollector {
- public static ThreadPoolStats TOMCAT_THREAD;
- public static ThreadPoolStats EL_THREAD;
- @Override
- public void collect(ThreadPoolStats threadPoolStats) {
- if ("tomcatTp".equals(threadPoolStats.getPoolName())) {
- ThreadMonitorCollector.TOMCAT_THREAD = threadPoolStats;
- } else {
- ThreadMonitorCollector.EL_THREAD = threadPoolStats;
- }
- log.info("线程池数据:{}", threadPoolStats);
- }
-
- @Override
- public String type() {
- return "test_collect";
- }
-}
+//package org.nl.config.thread;
+//
+//import lombok.extern.slf4j.Slf4j;
+//import org.dromara.dynamictp.common.entity.ThreadPoolStats;
+//import org.dromara.dynamictp.core.monitor.collector.AbstractCollector;
+//
+///**
+// * @Author: lyd
+// * @Description: 线程监控
+// * @Date: 2023/12/25
+// */
+//@Slf4j
+//public class ThreadMonitorCollector extends AbstractCollector {
+// public static ThreadPoolStats TOMCAT_THREAD;
+// public static ThreadPoolStats EL_THREAD;
+// @Override
+// public void collect(ThreadPoolStats threadPoolStats) {
+// if ("tomcatTp".equals(threadPoolStats.getPoolName())) {
+// ThreadMonitorCollector.TOMCAT_THREAD = threadPoolStats;
+// } else {
+// ThreadMonitorCollector.EL_THREAD = threadPoolStats;
+// }
+// log.info("线程池数据:{}", threadPoolStats);
+// }
+//
+// @Override
+// public String type() {
+// return "test_collect";
+// }
+//}
diff --git a/nladmin-system/nlsso-server/src/main/java/org/nl/system/controller/monitor/MonitorController.java b/nladmin-system/nlsso-server/src/main/java/org/nl/system/controller/monitor/MonitorController.java
deleted file mode 100644
index bf51e5f..0000000
--- a/nladmin-system/nlsso-server/src/main/java/org/nl/system/controller/monitor/MonitorController.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright 2019-2020 Zheng Jie
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.nl.system.controller.monitor;
-
-import cn.dev33.satoken.annotation.SaCheckPermission;
-
-
-import lombok.RequiredArgsConstructor;
-import org.nl.system.service.monitor.MonitorService;
-import org.springframework.http.HttpStatus;
-import org.springframework.http.ResponseEntity;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-
-/**
- * @author Zheng Jie
- * @date 2020-05-02
- */
-@RestController
-@RequiredArgsConstructor
-@RequestMapping("/api/monitor")
-public class MonitorController {
-
- private final MonitorService serverService;
-
- @GetMapping
-
- @SaCheckPermission("monitor:list")
- public ResponseEntity