application.yaml 1.9 KB
Newer Older
1 2 3
spring:
  # datasource
  datasource:
sin's avatar
sin committed
4
    url: jdbc:mysql://180.167.213.26:13306/mall_order?useSSL=false&useUnicode=true&characterEncoding=UTF-8
5 6 7
    driver-class-name: com.mysql.jdbc.Driver
    username: root
    password: ${MALL_MYSQL_PASSWORD}
8 9
  application:
    name: order-impl  # 设置值保证程序启动时不报错,具体的值需要修改[nengjie]
10 11

# mybatis
Autorun's avatar
Autorun committed
12
#mybatis:
sin's avatar
sin committed
13 14 15 16 17 18 19 20 21 22 23 24
#  config-location: classpath:mybatis-config.xml
#  mapper-locations: classpath:mapper/*.xml
#  type-aliases-package: cn.iocoder.mall.order.biz.dataobject
#
# mybatis-plus
mybatis-plus:
  configuration:
    map-underscore-to-camel-case: true # 虽然默认为 true ,但是还是显示去指定下。
  global-config:
    db-config:
      id-type: auto
  mapper-locations: classpath*:mapper/*.xml
sin's avatar
sin committed
25
  type-aliases-package: cn.iocoder.mall.order.biz.dataobject
26 27 28 29 30 31 32 33 34 35 36

# dubbo
dubbo:
  application:
    name: order-service
  registry:
    address: zookeeper://127.0.0.1:2181
  protocol:
    port: -1
    name: dubbo
  scan:
37 38
    base-packages: cn.iocoder.mall.order.biz.service

39
  provider:
40
    filter: -exception
41 42
    CartService:
      version: 1.0.0
sin's avatar
sin committed
43 44 45 46 47 48
    OrderService:
      version: 1.0.0
    OrderReturnService:
      version: 1.0.0
    OrderLogisticsService:
      version: 1.0.0
49 50
    OrderCommentService:
      version: 1.0.0
51 52
    OrderCommentReplyService:
      version: 1.0.0
53
  consumer:
54
    timeout: 120000 # 设置长一点,方便调试代码
55 56 57 58 59 60
    ProductSpuService:
      version: 1.0.0
    PromotionActivityService:
      version: 1.0.0
    CouponService:
      version: 1.0.0
61 62 63 64 65 66 67 68
    PayRefundService:
      version: 1.0.0
    UserAddressService:
      version: 1.0.0
    PayTransactionService:
      version: 1.0.0
    DataDictService:
      version: 1.0.0
69 70 71 72

# logging
logging:
  level:
sin's avatar
sin committed
73 74
    # dao 开启 debug 模式 mybatis 输入 sql
    cn.iocoder.mall.order.biz.dao: debug
75 76 77 78

# seata
seata:
  tx-service-group: my_test_tx_group