一些优化
This commit is contained in:
parent
b2c2495938
commit
4a0b165b91
|
|
@ -5,9 +5,9 @@ logging:
|
|||
nflg: debug
|
||||
alibaba:
|
||||
cloud:
|
||||
nacos: debug
|
||||
nacos: info
|
||||
org:
|
||||
springframework: debug
|
||||
springframework: info
|
||||
# sa-token配置
|
||||
sa-token:
|
||||
# SSO-相关配置
|
||||
|
|
@ -73,22 +73,33 @@
|
|||
<message>
|
||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] [%X{traceId}] %-5level %logger{50} - %msg %ex</pattern>
|
||||
</message>
|
||||
<verbose>false</verbose>
|
||||
</appender>
|
||||
<appender name="ASYNC_LOKI" class="ch.qos.logback.classic.AsyncAppender">
|
||||
<appender-ref ref="LOKI" />
|
||||
<!-- 队列大小 -->
|
||||
<queueSize>1024</queueSize>
|
||||
<!-- 丢弃策略 -->
|
||||
<discardingThreshold>0</discardingThreshold>
|
||||
<!-- 关键:即使队列满也不阻塞 -->
|
||||
<neverBlock>true</neverBlock>
|
||||
<includeCallerData>false</includeCallerData>
|
||||
</appender>
|
||||
|
||||
<logger name="com.alibaba.nacos" level="warn" additivity="false">
|
||||
<!-- <appender-ref ref="FILE"/>-->
|
||||
<appender-ref ref="LOKI"/>
|
||||
<appender-ref ref="ASYNC_LOKI"/>
|
||||
</logger>
|
||||
|
||||
<logger name="tech.powerjob" level="INFO" additivity="false">
|
||||
<!-- <appender-ref ref="POWERJOB_WORKER_APPENDER" />-->
|
||||
<appender-ref ref="LOKI"/>
|
||||
<appender-ref ref="ASYNC_LOKI"/>
|
||||
</logger>
|
||||
|
||||
<!-- 默认配置 -->
|
||||
<root level="DEBUG">
|
||||
<appender-ref ref="CONSOLE"/>
|
||||
<!-- <appender-ref ref="FILE"/>-->
|
||||
<appender-ref ref="LOKI"/>
|
||||
<appender-ref ref="ASYNC_LOKI"/>
|
||||
</root>
|
||||
</configuration>
|
||||
|
|
@ -1,8 +1,9 @@
|
|||
package com.nflg.wms.scheduled;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.WebApplicationType;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
|
||||
@Slf4j
|
||||
|
|
@ -11,7 +12,9 @@ import org.springframework.context.annotation.ComponentScan;
|
|||
public class ScheduledApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(ScheduledApplication.class, args);
|
||||
new SpringApplicationBuilder(ScheduledApplication.class)
|
||||
.web(WebApplicationType.NONE)
|
||||
.run(args);
|
||||
log.info("服务已启动");
|
||||
|
||||
// SapService sapService=SpringUtil.getBean(SapService.class);
|
||||
|
|
|
|||
Loading…
Reference in New Issue