From c110cbe1f32271b72a4cc7a26669ab8c76219da3 Mon Sep 17 00:00:00 2001 From: zhaowg Date: Tue, 9 Oct 2018 17:38:52 +0800 Subject: [PATCH] 增加job --- zteits-job/src/main/resources/application.properties | 4 +++- zteits-job/src/main/resources/logback-spring.xml | 41 +++++++++++++++++++++++++++++++++++++++++ zteits-job/zteits-job.iml | 182 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------ 3 files changed, 148 insertions(+), 79 deletions(-) create mode 100644 zteits-job/src/main/resources/logback-spring.xml diff --git a/zteits-job/src/main/resources/application.properties b/zteits-job/src/main/resources/application.properties index 308bc63..882883e 100644 --- a/zteits-job/src/main/resources/application.properties +++ b/zteits-job/src/main/resources/application.properties @@ -1,5 +1,7 @@ spring.application.name=zteist-job -server.port=8080 +server.port=8082 +spring.boot.admin.url=http://localhost:8080 +management.security.enabled=false project.syscode=zteits-job #spring.profiles.active=prod #logging.level.root=info diff --git a/zteits-job/src/main/resources/logback-spring.xml b/zteits-job/src/main/resources/logback-spring.xml new file mode 100644 index 0000000..6e3ab83 --- /dev/null +++ b/zteits-job/src/main/resources/logback-spring.xml @@ -0,0 +1,41 @@ + + + + + + + + + + ${LOG_FILE} + + + ${LOG_FILE}-%d{yyyy-MM-dd}.%i.log + + 1GB + 60 + 20GB + + + + %yellow(%date{yyyy-MM-dd HH:mm:ss})|%cyan(%-5level)|%cyan(%thread) |%green(%logger:%line) |%highlight(%msg%n) + + + + + + + + + + %yellow(%date{yyyy-MM-dd HH:mm:ss})|%cyan(%-5level)|%cyan(%thread) |%green(%logger:%line) |%highlight(%msg%n) + UTF-8 + + + + + + + diff --git a/zteits-job/zteits-job.iml b/zteits-job/zteits-job.iml index f17796d..9335f59 100644 --- a/zteits-job/zteits-job.iml +++ b/zteits-job/zteits-job.iml @@ -11,15 +11,17 @@ - - + + - + + + - + @@ -31,9 +33,9 @@ - - - + + + @@ -47,8 +49,8 @@ - - + + @@ -88,80 +90,94 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - + + + + + + + - + - - - - - - - - - + + + + + + @@ -191,7 +207,6 @@ - @@ -201,11 +216,22 @@ - - - - - - + + + + + + + + + + + + + + + + + \ No newline at end of file -- libgit2 0.21.4