application-local.yml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. # 数据源配置
  2. spring:
  3. datasource:
  4. type: com.alibaba.druid.pool.DruidDataSource
  5. driverClassName: com.mysql.cj.jdbc.Driver
  6. druid:
  7. # 主库数据源
  8. master:
  9. url: jdbc:mysql://localhost:3306/big_model?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  10. username: root
  11. password: 1234qwer
  12. # 从库数据源
  13. slave:
  14. # 从数据源开关/默认关闭
  15. enabled: true
  16. driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
  17. url: jdbc:sqlserver://10.0.3.53:1433;SelectMethod=Cursor;DatabaseName=信义
  18. username: hongshan
  19. password: hongshan
  20. # 初始连接数
  21. initialSize: 5
  22. # 最小连接池数量
  23. minIdle: 10
  24. # 最大连接池数量
  25. maxActive: 20
  26. # 配置获取连接等待超时的时间
  27. maxWait: 60000
  28. # 配置连接超时时间
  29. connectTimeout: 30000
  30. # 配置网络超时时间
  31. socketTimeout: 60000
  32. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  33. timeBetweenEvictionRunsMillis: 60000
  34. # 配置一个连接在池中最小生存的时间,单位是毫秒
  35. minEvictableIdleTimeMillis: 300000
  36. # 配置一个连接在池中最大生存的时间,单位是毫秒
  37. maxEvictableIdleTimeMillis: 900000
  38. # 配置检测连接是否有效
  39. validationQuery: SELECT 1
  40. testWhileIdle: true
  41. testOnBorrow: false
  42. testOnReturn: false
  43. webStatFilter:
  44. enabled: true
  45. statViewServlet:
  46. enabled: true
  47. # 设置白名单,不填则允许所有访问
  48. allow:
  49. url-pattern: /druid/*
  50. # 控制台管理用户名和密码
  51. login-username: slibra
  52. login-password: 123456
  53. filter:
  54. stat:
  55. enabled: true
  56. # 慢SQL记录
  57. log-slow-sql: true
  58. slow-sql-millis: 1000
  59. merge-sql: true
  60. wall:
  61. config:
  62. multi-statement-allow: true
  63. application:
  64. ali-cloud:
  65. enable-sms: true
  66. access-key-id: LTAI5tMYjV29Hy1XKn3d79YD
  67. access-key-secret: 48we5KZdx9Bu2OiJ9hmXhQTf2aCut0
  68. sign-name: 伏羲碳惠交易平台
  69. templateCooperation: SMS_264860508
  70. templateCodeMessage: SMS_461080515
  71. templateSysRegistPassed: SMS_461065541
  72. templateRegistPassed: SMS_461025520
  73. templateRegistUnpassed: SMS_460935564
  74. templateAccountFreezed: SMS_264190885
  75. templateAccountUnfreezed: SMS_264030916
  76. templateAccountReset: SMS_264030920
  77. templateRegistBuyer: SMS_462425424
  78. plat-bank-account:
  79. user-id: 1
  80. account-name: 碳交易平台银行账号
  81. account-number: 1234567891234567
  82. issuing-bank: 平台开会行
  83. inter-bank-number: 银联号
  84. issuing-address: 开户行地址
  85. tempPath: ./trade/tmp/
  86. uploadPath: ./upload/
  87. ecspUploadPath: ../clibra/upload/
  88. # wechatPay:
  89. # merchantId: 1649012850
  90. # appId: wx4bc491881ec58241
  91. # privateKeyPath: E:\\apiclient_key.pem #todo 为什么这里配置./wechatPay/apiclient_key.pem 不可以用呢
  92. # merchantSerialNumber: 509C23FE88EBBBA28BF0F9D9FA477FF93F9EDD24
  93. # apiV3key: 5ugirU2woc4BQdGZjJlQX8GHmY4u8685
  94. oss:
  95. qiniu:
  96. url: https://static.fuxicarbon.com #域名
  97. accessKey: z7EU9DhXbF9Y0J462Qmo8a8HvCOu5KUhR3PiGN-9 #
  98. secretKey: t6LGwyfl4gFbckQtyk2QUYW1162u5e7oZh9Ixsnd #
  99. bucketName: fuxicarbon #空间名
  100. #默认走测试环境
  101. big-model:
  102. ip: 10.0.0.24
  103. port: 17070
  104. temperature: 0.7
  105. topP: 0.7
  106. log:
  107. logPath: /Users/wangmiaomiao/logs