瀏覽代碼

指定环境

xueyiming 6 月之前
父節點
當前提交
641b783f29

+ 0 - 14
we-com-server/src/main/resources/application-dev.properties

@@ -1,14 +0,0 @@
-spring.datasource.username=crawler
-spring.datasource.password=crawler123456@
-spring.datasource.url=jdbc:mysql://rm-bp1k5853td1r25g3n690.mysql.rds.aliyuncs.com:3306/piaoquan-crawler?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true
-
-spring.redis.database=2
-spring.redis.host=r-bp154bpw97gptefiqkpd.redis.rds.aliyuncs.com
-spring.redis.port=6379
-spring.redis.password=Qingqu2019
-
-xxl.job.admin.addresses=http://xxl-job-test-internal.piaoquantv.com/xxl-job-admin
-
-
-
-

+ 0 - 0
we-com-server/src/main/resources/application.properties → we-com-server/src/main/resources/application-dev.yml


+ 0 - 44
we-com-server/src/main/resources/application-prod.properties

@@ -1,44 +0,0 @@
-logging.config=classpath:log4j2.xml
-
-spring.datasource.username=crawler
-spring.datasource.password=crawler123456@
-spring.datasource.url=jdbc:mysql://rm-bp1159bu17li9hi94.mysql.rds.aliyuncs.com:3306/piaoquan-crawler?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true
-spring.datasource.driver-class-name=com.mysql.jdbc.Driver
-spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
-spring.datasource.initialSize=5
-spring.datasource.maxActive=20
-spring.datasource.maxWait=60000
-spring.datasource.timeBetweenEvictionRunsMillis=60000
-spring.datasource.minEvictableIdleTimeMillis=300000
-spring.datasource.validationQuery=SELECT 1 FROM DUAL
-spring.datasource.testWhileIdle=true
-spring.datasource.testOnBorrow=false
-spring.datasource.testOnReturn=false
-spring.datasource.poolPreparedStatements=true
-
-
-
-spring.redis.database=2
-spring.redis.host=r-bp154bpw97gptefiqkpd.redis.rds.aliyuncs.com
-spring.redis.port=6379
-spring.redis.password=Qingqu2019
-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
-
-datalog=/datalog
-
-spring.application.name=we-com-server
-
-xxl.job.admin.addresses=http://xxl-job-internal.piaoquantv.com/xxl-job-admin
-xxl.job.accessToken=
-xxl.job.executor.appname=${spring.application.name}
-xxl.job.executor.address=
-xxl.job.executor.ip=
-xxl.job.executor.port=9999
-xxl.job.executor.logpath=${datalog}/xxl-job/
-xxl.job.executor.logretentiondays=30
-
-
-

+ 22 - 0
we-com-server/src/main/resources/application-prod.yml

@@ -0,0 +1,22 @@
+logging:
+  config: classpath:log4j2.xml
+
+spring:
+  datasource:
+    username: crawler
+    password: crawler123456@
+    url: jdbc:mysql://rm-bp1159bu17li9hi94.mysql.rds.aliyuncs.com:3306/piaoquan-crawler?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true
+
+  redis:
+    database: 2
+    host: r-bp154bpw97gptefiqkpd.redis.rds.aliyuncs.com
+    port: 6379
+    password: Qingqu2019
+
+  application:
+    name: we-com-server
+
+xxl:
+  job:
+    admin:
+      addresses: http://xxl-job-internal.piaoquantv.com/xxl-job-admin

+ 41 - 0
we-com-server/src/main/resources/application.yml

@@ -0,0 +1,41 @@
+logging:
+  config: classpath:log4j2.xml
+
+spring:
+  datasource:
+    driver-class-name: com.mysql.jdbc.Driver
+    type: com.alibaba.druid.pool.DruidDataSource
+    initialSize: 5
+    maxActive: 20
+    maxWait: 60000
+    timeBetweenEvictionRunsMillis: 60000
+    minEvictableIdleTimeMillis: 300000
+    validationQuery: SELECT 1 FROM DUAL
+    testWhileIdle: true
+    testOnBorrow: false
+    testOnReturn: false
+    poolPreparedStatements: true
+
+  redis:
+    lettuce:
+      pool:
+        max-active: 8
+        max-wait: -1
+        max-idle: 8
+        min-idle: 0
+
+  application:
+    name: we-com-server
+
+xxl:
+  job:
+    accessToken: ""
+    executor:
+      appname: ${spring.application.name}
+      address: ""
+      ip: ""
+      port: 9999
+      logpath: ${datalog}/xxl-job/
+      logretentiondays: 30
+
+datalog: /datalog