Sfoglia il codice sorgente

修改配置文件

aokunsang 3 settimane fa
parent
commit
6d5ff90958

+ 1 - 1
src/main/resources/application-dev.properties

@@ -31,7 +31,7 @@ spring.datasource.testOnBorrow=false
 spring.datasource.testOnReturn=false
 spring.datasource.poolPreparedStatements=true
 spring.datasource.maxPoolPreparedStatementPerConnectionSize=20
-spring.datasource.filters=stat,wall,slf4j
+spring.datasource.filters=slf4j
 spring.datasource.connectionProperties=druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
 spring.datasource.useGlobalDataSourceStat=true
 

+ 1 - 1
src/main/resources/application-docker.properties

@@ -33,7 +33,7 @@ spring.datasource.testOnBorrow=false
 spring.datasource.testOnReturn=false
 spring.datasource.poolPreparedStatements=true
 spring.datasource.maxPoolPreparedStatementPerConnectionSize=20
-spring.datasource.filters=stat,slf4j
+spring.datasource.filters=slf4j
 spring.datasource.connectionProperties=druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
 spring.datasource.useGlobalDataSourceStat=true
 

+ 0 - 63
src/main/resources/application-pro.properties

@@ -1,63 +0,0 @@
-server.port = 8081
-
-# ����Դ1
-#spring.datasource.druid.one.url=jdbc:mysql://127.0.0.1/apimngr?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC&useSSL=true
-#spring.datasource.druid.one.username=root
-#spring.datasource.druid.one.password=123456
-#spring.datasource.druid.one.driver-class-name=com.mysql.jdbc.Driver
-
-# ����Դ2
-
-spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
-
-spring.datasource.url=jdbc:mysql://127.0.0.1/apimngr?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC&useSSL=false
-spring.datasource.username=root
-spring.datasource.password=Platomix&6815
-spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
-spring.datasource.max-idle=10
-spring.datasource.max-wait=10000
-spring.datasource.min-idle=5
-spring.datasource.initial-size=5
-
-# mybatis ����
-mybatis.mapper-locations=classpath:/mapper/*Mapper.xml 
-mybatis.type-aliases-package=com.ff.apimngr.entity
-
-#druid ����
-spring.datasource.initialSize=5
-spring.datasource.minIdle=5
-spring.datasource.maxActive=20
-spring.datasource.maxWait=60000
-spring.datasource.timeBetweenEvictionRunsMillis=60000
-spring.datasource.minEvictableIdleTimeMillis=30000
-spring.datasource.validationQuery=select 'x'
-spring.datasource.testWhileIdle=true
-spring.datasource.testOnBorrow=false
-spring.datasource.testOnReturn=false
-spring.datasource.poolPreparedStatements=true
-spring.datasource.maxPoolPreparedStatementPerConnectionSize=20
-spring.datasource.filters=stat,wall,slf4j
-spring.datasource.connectionProperties=druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
-spring.datasource.useGlobalDataSourceStat=true
-
-spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
-spring.jackson.time-zone=GMT+8
-
-spring.servlet.multipart.max-file-size=10MB
-spring.servlet.multipart.max-request-size=100MB
-
-#mybatis log
-logging.level.com.ff.apimngr.dao=debug
-
-## Redis ����
-spring.redis.host=127.0.0.1
-spring.redis.port=6379
-spring.redis.password=
-spring.redis.timeout=10000
-spring.redis.database=0
-spring.redis.lettuce.pool.max-active=8
-spring.redis.lettuce.pool.max-wait=-1
-spring.redis.lettuce.pool.max-idle=8
-spring.redis.lettuce.pool.min-idle=0
-
-api.domain=http://cgi.platomix.net

+ 1 - 1
src/main/resources/application-test.properties

@@ -33,7 +33,7 @@ spring.datasource.testOnBorrow=false
 spring.datasource.testOnReturn=false
 spring.datasource.poolPreparedStatements=true
 spring.datasource.maxPoolPreparedStatementPerConnectionSize=20
-spring.datasource.filters=stat,wall,slf4j
+spring.datasource.filters=slf4j
 spring.datasource.connectionProperties=druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
 spring.datasource.useGlobalDataSourceStat=true
 

+ 1 - 1
src/main/resources/logback-spring.xml

@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <configuration scan="true" scanPeriod="60 seconds">
     <!-- 自定义参数监听 -->
-    <springProperty scope="context" name="appname" source="spring.application.name" defaultValue="gmetry-bis"/>
+    <springProperty scope="context" name="appname" source="spring.application.name" defaultValue="gmetry-bi"/>
     <springProperty scope="context" name="logPath" source="log.path" defaultValue="target/log"/>
 
     <!-- 彩色日志依赖的渲染类 -->