| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- spring:
- cloud:
- nacos:
- discovery:
- # 服务注册地址
- server-addr: 127.0.0.1:8848
- # 命名空间
- namespace: sckw-service-platform-dev
- # 共享配置
- group: sckw-service-platform
- config:
- # 配置中心地址
- server-addr: 127.0.0.1:8848
- # 配置文件格式
- file-extension: yaml
- # 命名空间
- namespace: sckw-service-platform-dev
- # 共享配置
- group: sckw-service-platform
- stream:
- bindings:
- sckwSms-out-0:
- destination: sckw-sms
- content-type: application/json
- default-binder: defaultRabbit
- group: sckw
- sckwMessage-out-0:
- destination: sckw-message
- content-type: application/json
- default-binder: defaultRabbit
- group: sckw
- binders:
- defaultRabbit:
- type: rabbit
- environment:
- spring:
- rabbitmq:
- virtual-host: /
- host: 39.104.134.114
- port: 5672
- username: wph
- password: Yy123...
- rabbitmq:
- username: wph
- password: Yy123...
- host: 39.104.134.114
- port: 5672
- virtual-host: /
- data:
- redis:
- host: 127.0.0.1
- port: 6379
- database: 0
- timeout: 5000
- # dubbo
- dubbo:
- application:
- # 此处没有延用spring.application.name是因为当前项目本身也会注册到nacos中,如果dubbo也延用相同的名称,在nacos服务里会看到注册的producer-server服务数为2
- name: system-dubbo-server
- protocol:
- name: dubbo
- port: -1
- registry:
- # 配置dubbo的注册中心为nacos
- address: nacos://${spring.cloud.nacos.discovery.server-addr}
- group: ${spring.cloud.nacos.config.group}
- protocol: nacos
- #use-as-config-center: false
- #use-as-metadata-center: false
- mybatis-plus:
- mapper-locations: classpath*:/mapper/*.xml #扫描xml文件
- #实体扫描,多个package用逗号或者分号分隔
- typeAliasesPackage: com.sckw.*.model
- configuration:
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|