application-prod.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. server:
  2. port: 8888
  3. spring:
  4. application:
  5. name: blockchain-transfer-service
  6. jackson:
  7. time-zone: GMT+8
  8. date-format: yyyy-MM-dd HH:mm:ss
  9. rabbitmq:
  10. host: 127.0.0.1
  11. port: 5672
  12. username: blockchain
  13. password: bl@nkchaine69139fa
  14. virtual-host: /adae
  15. connection-timeout: 10000 # 增加超时时间
  16. #mysql
  17. datasource:
  18. url: jdbc:mysql://t6w2dyvggz5fk.aliyun-ap-southeast-1.oceanbase.cloud:3306/adae?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  19. username: adae
  20. password: q8s:%~[(m7lStxC;@_bX31~7l7xj)z
  21. driver-class-name: com.mysql.cj.jdbc.Driver
  22. mybatis-plus:
  23. configuration:
  24. map-underscore-to-camel-case: true
  25. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 开发时开启SQL日志
  26. global-config:
  27. db-config:
  28. id-type: auto
  29. logic-delete-field: deleted # 逻辑删除字段名
  30. logic-delete-value: 1
  31. logic-not-delete-value: 0
  32. mapper-locations: classpath*:/mapper/**/*.xml
  33. logging:
  34. level:
  35. org.springframework.amqp: DEBUG # 添加 RabbitMQ 调试日志
  36. com.table.transfer: INFO
  37. com.example.blockchain: INFO
  38. file:
  39. name: logs/transfer.log
  40. pattern:
  41. file: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n"