Blame view

application.properties 3.26 KB
涂亚平 committed
1
# 环境配置
涂亚平 committed
2
spring.profiles.active=dev
涂亚平 committed
3
# 端口号
涂亚平 committed
4
spring.server.port=23457
涂亚平 committed
5 6
#嵌入tomcat配置
#和CPU数
7
spring.server.acceptorThreadCount=600
涂亚平 committed
8 9
spring.server.minSpareThreads=100
spring.server.maxSpareThreads=500
10 11
spring.server.maxThreads=500
spring.server.maxConnections=1000
涂亚平 committed
12 13
#10秒超时
spring.server.connectionTimeout=20000
14
spring.server.protocol=org.apache.coyote.http11.Http11AprProtocol
涂亚平 committed
15 16 17 18 19
spring.server.redirectPort=8443
spring.server.compression=on
#文件请求大小
spring.server.MaxFileSize=300MB
spring.server.MaxRequestSize=500MB
涂亚平 committed
20 21 22 23 24 25 26 27 28 29
# 文件编码 UTF8
spring.mandatory-file-encoding=UTF-8
spring.jackson.time-zone=GMT+8
# 404 交给异常处理器处理
spring.mvc.throw-exception-if-no-handler-found=true
# 关闭静态资源的映射
spring.resources.add-mappings=false
# 关闭banner打印
mybatis-plus.global-config.banner=false
# mybatis-plus相关配置
涂亚平 committed
30
mybatis-plus.mapper-locations=classpath:mapper/*.xml
涂亚平 committed
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
# 是否开启自动驼峰命名规则映射
mybatis-plus.configuration.map-underscore-to-camel-case=true
# 如果查询结果中包含空值的列,则 MyBatis 在映射的时候,不会映射这个字段
mybatis-plus.configuration.call-setters-on-nulls=true
# 逻辑删除
mybatis-plus.global-config.db-config.logic-delete-value=NOW()
mybatis-plus.global-config.db-config.logic-not-delete-value=NULL
#日志配置
logging.config=classpath:logback-spring.xml
# 阿里云短信
sms.product=Dysmsapi
sms.domain=dysmsapi.aliyuncs.com
sms.accessKeyId=LTAIOrpFKrDqsQ2c
sms.accessKeySecret=1Qp8huLETbWiBBJvHXJ7MOIhtKuA1G
#wechat.app-id=wx7785293ff5e31f14
#wechat.app-secret=25d57cad61fc1b45b3afa46d4c35e8f6
#wechat.agentId=1000008
涂亚平 committed
48 49 50 51 52 53
vod.appId=1302252447
vod.secretId=AKIDOcePHvZ2C5VeYHQGSO5aqtlNxJQLqfz2
vod.secretKey=vjHYRmrfDbw0rWxA7oFcj7F8lDPKCm8E
vod.api=vod.tencentcloudapi.com
vod.region=ap-shanghai
vod.classId=848920
涂亚平 committed
54 55
# quartz
# 数据持久化方式
56 57 58 59 60 61 62
spring.quartz.job-store-type=jdbc
# 初始化后是否自动启动计划程序
spring.quartz.auto-startup=true
# 初始化完成后启动计划程序的延迟时间
spring.quartz.startup-delay=10s
# 配置的作业是否应覆盖现有的作业定义
spring.quartz.overwrite-existing-jobs=false
涂亚平 committed
63 64 65
# 自动建表,如果已经存在表请勿使用,会覆盖数据表
#spring.quartz.jdbc.initialize-schema=always
#spring.datasource.initialization-mode=embedded
涂亚平 committed
66

涂亚平 committed
67 68 69 70 71 72
#spring.task.execution.pool.allow-core-thread-timeout=true
#spring.task.execution.pool.core-size=8
#spring.task.execution.pool.keep-alive=60
#spring.task.execution.pool.max-size=200
#spring.task.execution.pool.queue-capacity=200
#spring.task.execution.thread-name-prefix=subsidy-
涂亚平 committed
73 74 75

#spring.task.scheduling.pool.size=2
#spring.task.scheduling.thread-name-prefix=subsidy-
涂亚平 committed
76 77 78 79 80 81 82 83 84

#spring.redis.cluster.nodes=47.97.19.66:6377,47.97.19.66:6378,47.97.19.66:6379
##spring.redis.port=6379
#spring.redis.password=Ykhl@208
## spring.redis.cluster.max-redirects=3
#spring.redis.lettuce.pool.max-idle=16
#spring.redis.lettuce.pool.max-active=32
#spring.redis.lettuce.pool.min-idle=8

涂亚平 committed
85 86 87 88
#spring.redis.host=r-uf6m4cpkjrgpzywjm3pd.redis.rds.aliyuncs.com
#spring.redis.port=6379
#spring.redis.password=r-uf6m4cpkjrgpzywjm3:Ykhl@208

89 90 91 92 93 94
spring.redis.host=47.97.19.66
spring.redis.password=Ykhl@208
spring.redis.port=6389
spring.redis.lettuce.pool.max-idle=16
spring.redis.lettuce.pool.max-active=32
spring.redis.lettuce.pool.min-idle=8