From 1ced0c7786b272ef09e371173879567037e60f02 Mon Sep 17 00:00:00 2001 From: "chen.ma" Date: Mon, 29 Nov 2021 22:44:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9C=8D=E5=8A=A1=E7=AB=AF?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E9=85=8D=E7=BD=AE=E3=80=81=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E9=85=8D=E7=BD=AE.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hippo4j-server/conf/application.properties | 40 ++++++++++++++++++ hippo4j-server/conf/hippo4j-logback.xml | 48 ++++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 hippo4j-server/conf/application.properties create mode 100644 hippo4j-server/conf/hippo4j-logback.xml diff --git a/hippo4j-server/conf/application.properties b/hippo4j-server/conf/application.properties new file mode 100644 index 00000000..b0846836 --- /dev/null +++ b/hippo4j-server/conf/application.properties @@ -0,0 +1,40 @@ +#*************** Spring Boot Related Configurations ***************# +### Default Web Context Path +# server.servlet.contextPath=/hippo4j + +### Server Startup Port +server.port=6691 + +### Server Tomcat +server.tomcat.accesslog.enabled=true +server.tomcat.accesslog.pattern=%h %l %u %t "%r" %s %b %D %{User-Agent}i %{Request-Source}i + +### Default Current Work Dir +server.tomcat.basedir= + +#*************** Dynamic Thread Pool Custom Configuration ***************# +### Custom Logging Tenant +tenant=hippo4j + + +#*************** Config Module Related Configurations ***************# +### Hikari Datasource +spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver +spring.datasource.url=jdbc:mysql://localhost:3306/hippo_manager?characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8 +spring.datasource.username=root +spring.datasource.password=root +spring.datasource.hikari.pool-name=Hikari +spring.datasource.hikari.connectionTimeout=30000 +spring.datasource.hikari.idleTimeout=30000 +spring.datasource.hikari.validationTimeout=3000 +spring.datasource.hikari.maxLifetime=120000 +spring.datasource.hikari.loginTimeout=5 +spring.datasource.hikari.minimumIdle=5 +spring.datasource.hikari.maximumPoolSize=15 +spring.datasource.hikari.connection-test-query=SELECT 1 + +### Mybatis-Plus Config +mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl +mybatis-plus.global-config.db-config.logic-delete-field=delFlag +mybatis-plus.global-config.db-config.logic-delete-value=1 +mybatis-plus.global-config.db-config.logic-not-delete-value=0 diff --git a/hippo4j-server/conf/hippo4j-logback.xml b/hippo4j-server/conf/hippo4j-logback.xml new file mode 100644 index 00000000..f4cb67d9 --- /dev/null +++ b/hippo4j-server/conf/hippo4j-logback.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + + ${FILE_LOG_PATTERN} + + + + + ${logPath}/${appName}-info.log + + ${logPath}/${appName}/%d{yyyy-MM, aux}/debug.%d{yyyy-MM-dd}.%i.log.gz + 50MB + 30 + + + ${FILE_LOG_PATTERN} + UTF-8 + + + + + ${logPath}/${appName}-error.log + + ${logPath}/${appName}/%d{yyyy-MM}/error.%d{yyyy-MM-dd}.%i.log.gz + 50MB + 30 + + + ${FILE_LOG_PATTERN} + + + ERROR + + + + + + + +