bootstrap-dev.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. spring:
  2. cloud:
  3. nacos:
  4. discovery:
  5. # 服务注册地址
  6. server-addr: 127.0.0.1:8848
  7. # 命名空间
  8. namespace: sckw-service-platform-dev
  9. # 共享配置
  10. group: sckw-service-platform
  11. config:
  12. # 配置中心地址
  13. server-addr: 127.0.0.1:8848
  14. # 配置文件格式
  15. file-extension: yaml
  16. # 命名空间
  17. namespace: sckw-service-platform-dev
  18. # 共享配置
  19. group: sckw-service-platform
  20. stream:
  21. bindings:
  22. sckwSms-out-0:
  23. destination: sckw-sms
  24. content-type: application/json
  25. default-binder: defaultRabbit
  26. group: sckw
  27. sckwMessage-out-0:
  28. destination: sckw-message
  29. content-type: application/json
  30. default-binder: defaultRabbit
  31. group: sckw
  32. binders:
  33. defaultRabbit:
  34. type: rabbit
  35. environment:
  36. spring:
  37. rabbitmq:
  38. virtual-host: /
  39. host: 39.104.134.114
  40. port: 5672
  41. username: wph
  42. password: Yy123...
  43. rabbitmq:
  44. username: wph
  45. password: Yy123...
  46. host: 39.104.134.114
  47. port: 5672
  48. virtual-host: /
  49. data:
  50. redis:
  51. host: 127.0.0.1
  52. port: 6379
  53. database: 0
  54. timeout: 5000
  55. # dubbo
  56. dubbo:
  57. application:
  58. # 此处没有延用spring.application.name是因为当前项目本身也会注册到nacos中,如果dubbo也延用相同的名称,在nacos服务里会看到注册的producer-server服务数为2
  59. name: system-dubbo-server
  60. protocol:
  61. name: dubbo
  62. port: -1
  63. registry:
  64. # 配置dubbo的注册中心为nacos
  65. address: nacos://${spring.cloud.nacos.discovery.server-addr}
  66. group: ${spring.cloud.nacos.config.group}
  67. protocol: nacos
  68. #use-as-config-center: false
  69. #use-as-metadata-center: false
  70. mybatis-plus:
  71. mapper-locations: classpath*:/mapper/*.xml #扫描xml文件
  72. #实体扫描,多个package用逗号或者分号分隔
  73. typeAliasesPackage: com.sckw.*.model
  74. configuration:
  75. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl