| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- spring:
- cloud:
- nacos:
- discovery:
- # 服务注册地址
- server-addr: 10.10.10.230:8848
- # 命名空间
- namespace: sckw-service-platform-dev
- # 共享配置
- group: sckw-service-platform
- config:
- # 配置中心地址
- server-addr: 10.10.10.230: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: 10.10.10.230
- port: 5672
- username: sckw
- password: Yy123...
- rabbitmq:
- username: sckw
- password: Yy123...
- host: 10.10.10.230
- 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
- datasource:
- dynamic:
- primary: master #设置默认的数据源或者数据源组,默认值即为master
- strict: false #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
- datasource:
- master:
- url: jdbc:mysql://47.108.162.14:3306/sckw_system?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
- username: root
- password: Yy123...
- driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
- slave_1:
- url: jdbc:mysql://47.108.162.14:3306/wph_system?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
- username: root
- password: Yy123...
- driver-class-name: com.mysql.jdbc.Driver
- mybatis-plus:
- mapper-locations: classpath*:/mapper/*.xml #扫描xml文件
- #实体扫描,多个package用逗号或者分号分隔
- typeAliasesPackage: com.sckw.*.model
- configuration:
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|