diff --git a/lms/nladmin-system/README.md b/lms/nladmin-system/README.md
index 1f39690..88c6366 100644
--- a/lms/nladmin-system/README.md
+++ b/lms/nladmin-system/README.md
@@ -1,4 +1,4 @@
-# 荣力-马钢
+# 上电科项目
```java
├── cockpit
diff --git a/lms/nladmin-system/nlsso-server/pom.xml b/lms/nladmin-system/nlsso-server/pom.xml
index 1ddb8c3..bf6ef6d 100644
--- a/lms/nladmin-system/nlsso-server/pom.xml
+++ b/lms/nladmin-system/nlsso-server/pom.xml
@@ -43,7 +43,7 @@
org.dromara.dynamictp
dynamic-tp-spring-boot-starter-adapter-webserver
- 1.1.6.1
+ 1.1.7
diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/AppRun.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/AppRun.java
index 2c6a8ed..8d0cc05 100644
--- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/AppRun.java
+++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/AppRun.java
@@ -58,11 +58,8 @@ public class AppRun {
* @return /
*/
@GetMapping("/")
- @Limit(period = 2, count = 1)
@SaIgnore
public String index() {
- MDC.put("system", "SSS");
- log.info("sssss");
return "Backend service started successfully";
}
}
diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/system/service/quartz/utils/QuartzRunnable.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/system/service/quartz/utils/QuartzRunnable.java
index 67cd536..cb7c5c8 100644
--- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/system/service/quartz/utils/QuartzRunnable.java
+++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/system/service/quartz/utils/QuartzRunnable.java
@@ -1,12 +1,13 @@
package org.nl.system.service.quartz.utils;
import cn.hutool.core.util.StrUtil;
+import com.yomahub.tlog.core.thread.TLogInheritableTask;
+import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.nl.config.SpringContextHolder;
import org.springframework.util.ReflectionUtils;
import java.lang.reflect.Method;
-import java.util.concurrent.Callable;
/**
* 执行定时任务
@@ -14,7 +15,7 @@ import java.util.concurrent.Callable;
* @author /
*/
@Slf4j
-public class QuartzRunnable implements Callable {
+public class QuartzRunnable extends TLogInheritableTask {
private final Object target;
private final Method method;
@@ -32,14 +33,15 @@ public class QuartzRunnable implements Callable {
}
}
+
+ @SneakyThrows
@Override
- public Object call() throws Exception {
+ public void runTask() {
ReflectionUtils.makeAccessible(method);
if (StrUtil.isNotEmpty(params)) {
method.invoke(target, params);
} else {
method.invoke(target);
}
- return null;
}
}
diff --git a/lms/nladmin-system/nlsso-server/src/main/resources/config/application-dev.yml b/lms/nladmin-system/nlsso-server/src/main/resources/config/application-dev.yml
index 299221e..965a485 100644
--- a/lms/nladmin-system/nlsso-server/src/main/resources/config/application-dev.yml
+++ b/lms/nladmin-system/nlsso-server/src/main/resources/config/application-dev.yml
@@ -13,9 +13,9 @@ spring:
# url: jdbc:log4jdbc:mysql://${DB_HOST:10.93.41.198}:${DB_PORT:3306}/${DB_NAME:rl_mg_lms}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true
# username: ${DB_USER:root}
# password: ${DB_PWD:123456}
- url: jdbc:log4jdbc:mysql://${DB_HOST:127.0.0.1}:${DB_PORT:3306}/${DB_NAME:rtmg_lms}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true
+ url: jdbc:log4jdbc:mysql://${DB_HOST:127.0.0.1}:${DB_PORT:3306}/${DB_NAME:rlmg_lms}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true
username: ${DB_USER:root}
- password: ${DB_PWD:12356}
+ password: ${DB_PWD:P@ssw0rd}
type: com.alibaba.druid.pool.DruidDataSource
oracle:
driver-class-name: oracle.jdbc.OracleDriver
diff --git a/lms/nladmin-system/nlsso-server/src/main/resources/config/application.yml b/lms/nladmin-system/nlsso-server/src/main/resources/config/application.yml
index 7b032c0..105a095 100644
--- a/lms/nladmin-system/nlsso-server/src/main/resources/config/application.yml
+++ b/lms/nladmin-system/nlsso-server/src/main/resources/config/application.yml
@@ -46,7 +46,7 @@ spring:
freemarker:
check-template-location: false
profiles:
- active: dev2
+ active: dev
jackson:
time-zone: GMT+8
data:
@@ -62,36 +62,12 @@ spring:
logPath: C:\log\lms # 监控日志数据路径,默认 ${user.home}/logs,采集类型非logging不用配置
monitorInterval: 8
tomcatTp: # tomcat webserver 线程池配置
- threadPoolAliasName: tomcat 线程池 # 线程池别名,可选
- corePoolSize: 100
- maximumPoolSize: 200
+ threadPoolAliasName: tomcat线程池 # 线程池别名,可选
+ corePoolSize: 10
+ maximumPoolSize: 50
keepAliveTime: 60
runTimeout: 10000
queueTimeout: 100
- notifyItems: # 报警项,不配置自动会按默认值配置(变更通知、容量报警、活性报警、拒绝报警、任务超时报警)
- - type: change
- enabled: true
-
- - type: capacity # 队列容量使用率,报警项类型,查看源码 NotifyTypeEnum枚举类
- enabled: true
- threshold: 80 # 报警阈值,默认70,意思是队列使用率达到70%告警
- interval: 120 # 报警间隔(单位:s),默认120
-
- - type: liveness # 线程池活性
- enabled: true
- threshold: 80 # 报警阈值,默认 70,意思是活性达到70%告警
-
- - type: reject # 触发任务拒绝告警
- enabled: true
- threshold: 100 # 默认阈值10
-
- - type: run_timeout # 任务执行超时告警
- enabled: true
- threshold: 100 # 默认阈值10
-
- - type: queue_timeout # 任务排队超时告警
- enabled: true
- threshold: 100 # 默认阈值10
task:
pool:
# 核心线程池大小
@@ -188,3 +164,5 @@ jetcache:
maxTotal: 50 # 连接池中的最大连接数
host: 127.0.0.1
port: 6379
+tlog:
+ enable-invoke-time-print: true
\ No newline at end of file
diff --git a/lms/nladmin-system/nlsso-server/src/main/resources/logback-spring.xml b/lms/nladmin-system/nlsso-server/src/main/resources/logback-spring.xml
index 9d79eb9..907a16c 100644
--- a/lms/nladmin-system/nlsso-server/src/main/resources/logback-spring.xml
+++ b/lms/nladmin-system/nlsso-server/src/main/resources/logback-spring.xml
@@ -69,10 +69,8 @@ https://juejin.cn/post/6844903775631572999
-
+
-
-