bootstrap-prd.properties 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. #spring.cloud.nacos.config.server-addr=172.18.61.6:8848
  2. #spring.cloud.nacos.config.namespace=80f5fb84-c3f9-4773-a297-204d1f39e23d
  3. #
  4. #spring.cloud.nacos.discovery.server-addr=172.18.61.6:8848
  5. #spring.cloud.nacos.discovery.namespace=80f5fb84-c3f9-4773-a297-204d1f39e23d
  6. #支付回调地址
  7. wechat.payment.notifyUrl=
  8. #退款回调地址
  9. wechat.payment.refundNotifyUrl=
  10. #常规设置
  11. server.port =11003
  12. spring.servlet.multipart.max-file-size=40MB
  13. spring.servlet.multipart.max-request-size=40MB
  14. #是否直接web端打印错误信息
  15. spring.devtools.add-properties=true
  16. #echache缓存
  17. spring.cache.type=ehcache
  18. spring.cache.ehcache.config=classpath:ehcache.xml
  19. #定时器开关
  20. schedule.enable=true
  21. ##SQL执行分析,该插件有性能损耗,不建议生产环境使用
  22. spring.datasource.druid.db-type=mysql
  23. spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
  24. spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
  25. spring.datasource.url=jdbc:mysql://127.0.0.1:3306/new_mall?verifyServerCertificate=false&useSSL=false&requireSSL=false&useUnicode=true&characterEncoding=UTF-8&characterSetResults=utf8&serverTimezone=Asia/Shanghai
  26. spring.datasource.username=root
  27. spring.datasource.password=root
  28. spring.datasource.druid.connection-init-sqls=set names utf8mb4
  29. spring.datasource.druid.initial-size=5
  30. spring.datasource.druid.minIdle=5
  31. spring.datasource.druid.maxActive=20
  32. ### 配置获取连接等待超时的时间,单位是毫秒
  33. spring.datasource.druid.maxWait=60000
  34. ### 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  35. spring.datasource.druid.timeBetweenEvictionRunsMillis=60000
  36. ### 配置一个连接在池中最小生存的时间,单位是毫秒
  37. spring.datasource.druid.minEvictableIdleTimeMillis=300000
  38. spring.datasource.druid.validationQuery=SELECT 1 FROM DUAL
  39. spring.datasource.druid.testWhileIdle=true
  40. spring.datasource.druid.testOnBorrow=false
  41. spring.datasource.druid.testOnReturn=false
  42. ### 打开PSCache,并且指定每个连接上PSCache的大小
  43. spring.datasource.druid.poolPreparedStatements=true
  44. spring.datasource.druid.maxPoolPreparedStatementPerConnectionSize=20
  45. ### 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  46. spring.datasource.druid.filters=stat,wall
  47. ### 通过connectProperties属性来打开mergeSql功能;慢SQL记录
  48. spring.datasource.druid.connectionProperties=druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
  49. # 合并多个DruidDataSource的监控数据
  50. #spring.datasource.useGlobalDataSourceStat=true
  51. ### log4j配置
  52. logging.config=classpath:logback.xml
  53. #undertow_web容器配置
  54. server.undertow.accesslog.dir=${user.dir}/logs/access
  55. server.undertow.accesslog.enabled=true
  56. server.undertow.accesslog.pattern=%h %l %u %t "%r" %s %b %D
  57. server.undertow.accesslog.prefix=access_log.
  58. server.undertow.accesslog.rotate=true
  59. server.undertow.accesslog.suffix=log
  60. server.undertow.max-http-post-size=10240000
  61. #swagger-login-account
  62. #spring.security.user.name=admin
  63. #spring.security.user.password=gree2021
  64. #jackson组件时区
  65. spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
  66. spring.jackson.time-zone=GMT+8
  67. spring.jackson.timeZone=GMT+08:00
  68. spring.jackson.serialization.write_dates_as_timestamps=false
  69. spring.mvc.date-format=yyyy-MM-dd HH:mm:ss
  70. web.upload-path=${user.dir}/static/
  71. web.imageService=https://xxxxx
  72. #####################redis 单机版 start################
  73. spring.redis.port=6379
  74. spring.redis.host=127.0.0.1
  75. #redis密码
  76. spring.redis.password=
  77. spring.redis.lettuce.pool.max-active=300
  78. spring.redis.lettuce.pool.max-wait=1000ms
  79. spring.redis.lettuce.pool.max-idle=100
  80. spring.redis.lettuce.pool.min-idle=0
  81. spring.redis.timeout=100000ms
  82. #阿里云key
  83. ali.accessKeyId=LTAI4G3XTLh8G8DiTpXHpWgt
  84. ali.accessKeySecret=LYe8uf7Lg9WxJ1xejk45qnPFqxXLzN
  85. #延迟消息线程数量
  86. thread.size = 1
  87. #微信
  88. wechat.appid=wxaddd13c267e81e70
  89. wechat.mch.id=1602811075
  90. wechat.mch.key=ZfiretopAdmin20210309GreeAdminSe
  91. wechat.sub.appid=wxd935838591c00e16
  92. wechat.sub.secret=a19f2ec72d9e1f0b4f86fac729f6ba81
  93. wechat.keyPath=classpath:/static/apiclient_cert.p12
  94. #发票API
  95. gjmall.url=https://gjmall.zfire.top
  96. tax.token.appid=zfire
  97. tax.token.appSecret=gsdfbsdtsbfffcxwrtfsdfvvxaggdsa
  98. tax.token.url=${gjmall.url}/interface/com/token/get
  99. tax.invoice.url=${gjmall.url}/interface/invoice/tax
  100. tax.invoice.title.url=${gjmall.url}/interface/invoice/title
  101. #物流回调
  102. express.callback=${gjmall.url}/api/common/express/callback
  103. #云闪付
  104. ums.url=https://api-mop.chinaums.com
  105. yue.huan.xin.url=https://mgw-test.gnete.com/gdhlgo2o
  106. yue.huan.xin.sftp=180.76.208.207
  107. yue.huan.xin.sftp.port=40980