Scheduled-native环境配置

This commit is contained in:
2022-11-21 00:30:42 +08:00
parent 5432c2284c
commit ca462dd083
3 changed files with 106 additions and 1 deletions

View File

@@ -0,0 +1,79 @@
#MySQL数据库配置
spring:
datasource:
url: jdbc:mysql://118.194.255.128:3306/peko?useUnicode=true&characterEncoding=UTF-8&tinyInt1isBit=false&useSSL=false
username: root
password: anan@dev##
driver-class-name: com.mysql.cj.jdbc.Driver
druid:
initial-size: 5
max-active: 120
min-idle: 5
max-wait: 60000
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
validation-query: SELECT 1 FROM DUAL
test-while-idle: true
test-on-borrow: false
test-on-return: false
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 50
filters: stat,wall
connection-properties=druid.stat.mergeSql: true;druid.stat.slowSqlMillis=500
use-global-data-source-stat: true
hikari:
minimum-idle: 10
maximum-pool-size: 20
connection-test-query: select 1
max-lifetime: 0
connection-timeout: 30000
data:
mongodb:
host: 118.194.255.128
port: 27017
username: peko
password: peko@mongo@dev#!
database: peko
redis:
host: 118.194.255.128
port: 6200
maxTotal: 100
maxIdle: 50
maxWait: 2500
testOnBorrow: true
testOnReturn: true
password: anan@dev@redis@#!
database: 1
redisson:
# file: classpath:redisson.yaml
config: |
singleServerConfig:
address: redis://118.194.255.128:6200
password: anan@dev@redis@#!
connectionMinimumIdleSize: 16
timeout: 10000
threads: 16
nettyThreads: 32
codec: !<org.redisson.codec.JsonJacksonCodec> {}
transportMode: "NIO"
##activemq 配置
activemq:
brokerUrl: tcp://118.194.255.128:61619
user: system
password: manager
maxConnections: 50
idleTimeout: 30000
## ES配置
elasticsearch:
clusterName: elasticsearch
hostName: es-cn-2r42lphv9000nvr61.public.elasticsearch.aliyuncs.com
port: 9200
username: elastic
password: xuanyin@es123
roomIndex: yinyou_dev_room
userIndex: yinyou_dev_users_202204121516
server:
port: 8081

View File

@@ -2,7 +2,19 @@ spring:
application:
name: scheduler
profiles:
active: dev
active: native
cloud:
nacos:
config:
server-addr: 120.24.160.102:8848
namespace: 5edc3246-3e69-4be5-a32a-273f0a09ddf6
name: ${spring.application.name}
file-extension: yml
shared-dataids: application.yml,thirdpart.yml,pay.yml,sysconf.yml
refreshable-dataids: application.yml,thirdpart.yml,pay.yml,sysconf.yml
---
spring:
profiles: dev
cloud:
nacos:
config:

View File

@@ -143,4 +143,18 @@
</root>
</springProfile>
<!--开发环境:打印控制台-->
<springProfile name="native">
<logger name="com.erban" level="DEBUG"/>
<root level="info">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="info_async_file"/>
<appender-ref ref="warn_async_file"/>
<appender-ref ref="error_async_file"/>
<!-- <appender-ref ref="aliyun-dev-info-log"/>-->
<!-- <appender-ref ref="aliyun-dev-warn-log"/>-->
<!-- <appender-ref ref="aliyun-dev-error-log"/>-->
</root>
</springProfile>
</configuration>