From 25d2efb6e4bcb16e43cb8abaec830a464f162094 Mon Sep 17 00:00:00 2001 From: mingsoft Date: Tue, 28 Dec 2021 22:15:36 +0800 Subject: [PATCH] =?UTF-8?q?5.2.5=E7=89=88=E6=9C=AC=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 37 +++-------- src/main/resources/application.yml | 11 ++-- src/main/resources/log4j-spring.xml | 98 +++++++++++++++++++++++++++++ 3 files changed, 111 insertions(+), 35 deletions(-) create mode 100644 src/main/resources/log4j-spring.xml diff --git a/pom.xml b/pom.xml index 3852319d..02fb8767 100644 --- a/pom.xml +++ b/pom.xml @@ -5,12 +5,12 @@ org.springframework.boot spring-boot-starter-parent - 2.2.13.RELEASE + 2.3.12.RELEASE 4.0.0 net.mingsoft ms-mcms - 5.2.4 + 5.2.5 ms-mcms @@ -44,47 +44,24 @@ net.mingsoft ms-base - 2.1.8 - - - - net.mingsoft - ms-base - 2.1.8 - sources - provided + 2.1.10 net.mingsoft ms-basic - 2.1.8 + 2.1.10 - - - net.mingsoft - ms-basic - 2.1.8 - sources - provided - - - net.mingsoft - ms-mdiy - 2.1.8 - - + net.mingsoft ms-mdiy - 2.1.8 - sources - provided + 2.1.10 net.mingsoft store-client - 2.1.8 + 2.1.10 diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index a24bcfe6..a3247bb0 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -5,19 +5,20 @@ server: # key-store: xxx.pfx 证书文件 # key-store-password: 1234 证书密码 +#配置日志 logging: level: net.mingsoft: debug - file: - name: mcms.log #会在项目的根目录下生成对应的mcms.log文件,也可以根据实际情况写绝对路径,例如:d:/mcms.log - path: log #会在项目的根目录下生成log目录,里面会生成对应的日期目录,日期目录下面生成日志压缩包备份文件,默认按每10M分割一个日志文件,例如:log/2020-01/app-2020-01-03-18.1.log.gz(表示2020年1月3号下午六点的第一个备份),也可以根据实际情况写绝对路径,例如:d:/log + config: classpath:log4j-spring.xml + ms: + shiro-key: 4AvVhmFLUs0KTA3Kprsdag== html-dir: html # scheme: https #解决使用代理服务器代理应用时标签解析域名依旧为http的问题 - swagger-enable: false #启用swagger文档,生产的时候务必关掉 访问地址:http://ip|域名/项目发布名/swagger-ui.html + swagger: + enable: false #启用swagger文档,生产的时候务必关掉 访问地址:http://ip|域名/项目发布名/swagger-ui.html manager: path: /ms #后台访问的路径,如:http://项目/ms/login.do,生产的时候建议修改 - view-path: /WEB-INF/manager #后台视图层路径配置 check-code: true #默认开启验证码验证,false验证码不验证 upload: diff --git a/src/main/resources/log4j-spring.xml b/src/main/resources/log4j-spring.xml new file mode 100644 index 00000000..ef37a954 --- /dev/null +++ b/src/main/resources/log4j-spring.xml @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file