lym il y a 4 ans
Parent
commit
7ae80eb763

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

@@ -1,5 +1,4 @@
 server.port=19001
-spring.application.name=pull-openiddata
 
 #mysql datasource setting
 spring.datasource.driver-class-name=com.mysql.jdbc.Driver

+ 51 - 1
src/main/resources/application-pro.properties

@@ -1 +1,51 @@
-server.port=18001
+server.port=19001
+
+#mysql datasource setting
+spring.datasource.driver-class-name=com.mysql.jdbc.Driver
+spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
+spring.datasource.url=jdbc:mysql://172.16.90.201:3306/wechat-openid-data?characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&autoReconnect=true&useSSL=false&&allowMultiQueries=true
+spring.datasource.username=root
+spring.datasource.password=123456
+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 1
+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
+spring.datasource.connectionProperties=druid.stat.mergeSql=true;druid.stat.slowSqlMillis=2000
+#mybatis setting
+mybatis.type-aliases-package=com.hw.entity
+mybatis.mapper-locations=classpath:mappers/*.xml
+mybatis.check-config-location=true
+mybatis.executor-type=simple
+#pagehelper setting
+pagehelper.helperDialect=mysql
+pagehelper.reasonable=true
+pagehelper.supportMethodsArguments=true
+pagehelper.params=count=countSql
+
+spring.redis.database=0
+spring.redis.host=127.0.0.1
+spring.redis.port=6379
+spring.redis.jedis.pool.max-idle=8
+spring.redis.jedis.pool.min-idle=0
+spring.redis.jedis.pool.max-active=10
+spring.redis.jedis.pool.max-wait=-1
+spring.redis.timeout=5000
+
+#原公众号appId
+wx.ma.appId=wxbe90cc7c5233dd84
+#原公众号secret
+wx.ma.secret=ec4a18ce1a7bcf17cf592c3d57cec68a
+
+#新公众号appId
+newwx.ma.appId=wxbe90cc7c5233dd84
+#新公众号secret
+newwx.ma.secret=ec4a18ce1a7bcf17cf592c3d57cec68a

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

@@ -1 +1,51 @@
-server.port=18002
+server.port=19001
+
+#mysql datasource setting
+spring.datasource.driver-class-name=com.mysql.jdbc.Driver
+spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
+spring.datasource.url=jdbc:mysql://172.16.90.201:3306/wechat-openid-data?characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&autoReconnect=true&useSSL=false&&allowMultiQueries=true
+spring.datasource.username=root
+spring.datasource.password=123456
+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 1
+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
+spring.datasource.connectionProperties=druid.stat.mergeSql=true;druid.stat.slowSqlMillis=2000
+#mybatis setting
+mybatis.type-aliases-package=com.hw.entity
+mybatis.mapper-locations=classpath:mappers/*.xml
+mybatis.check-config-location=true
+mybatis.executor-type=simple
+#pagehelper setting
+pagehelper.helperDialect=mysql
+pagehelper.reasonable=true
+pagehelper.supportMethodsArguments=true
+pagehelper.params=count=countSql
+
+spring.redis.database=0
+spring.redis.host=127.0.0.1
+spring.redis.port=6379
+spring.redis.jedis.pool.max-idle=8
+spring.redis.jedis.pool.min-idle=0
+spring.redis.jedis.pool.max-active=10
+spring.redis.jedis.pool.max-wait=-1
+spring.redis.timeout=5000
+
+#原公众号appId
+wx.ma.appId=wxbe90cc7c5233dd84
+#原公众号secret
+wx.ma.secret=ec4a18ce1a7bcf17cf592c3d57cec68a
+
+#新公众号appId
+newwx.ma.appId=wxbe90cc7c5233dd84
+#新公众号secret
+newwx.ma.secret=ec4a18ce1a7bcf17cf592c3d57cec68a

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

@@ -1,4 +1,5 @@
 spring.profiles.active=dev
+spring.application.name=wechat-openiddata
 
 #ÈÕÖ¾
 logging.config=classpath:logConfig/logConfig.xml

+ 1 - 1
src/main/resources/logConfig/logConfig.xml

@@ -16,7 +16,7 @@
     <!--             2.如果日期没有发生变化,但是当前日志的文件大小超过1KB时,对当前日志进行分割 重命名-->
     <appender name="syslog"
               class="ch.qos.logback.core.rolling.RollingFileAppender">
-        <File>log/what-openiddata.log</File>
+        <File>log/wechat-openiddata.log</File>
         <!-- rollingPolicy:当发生滚动时,决定 RollingFileAppender 的行为,涉及文件移动和重命名。 -->
         <!-- TimeBasedRollingPolicy: 最常用的滚动策略,它根据时间来制定滚动策略,既负责滚动也负责出发滚动 -->
         <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">