application.yaml 1.2 KB
Newer Older
Q
qinyingjie 已提交
1 2 3 4 5 6 7 8 9 10 11 12
#端口号
server:
  port: 9100

#兼容swagger配置
spring:
  # mysql
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://localhost:3306/kwan?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
    username: root
    password: 716288qwe
Q
qinyingjie 已提交
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
  application:
    name: goods-service #服务名称

#服务提供者
eureka:
  client:
    service-url:
      defaultZone: http://localhost:8766/eureka

management:
  endpoints:
    web:
      base-path: /actuator  #修改访问路径  2.0之前默认是/   2.0默认是 /actuator  可以通过这个属性值修改
  health:
    show-details: always  #显示健康具体信息  默认不会显示详细信息
Q
qinyingjie 已提交
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45

#mybatis-plus配置
mybatis-plus:
  configuration:
    map-underscore-to-camel-case: true
    call-setters-on-nulls: true
    auto-mapping-behavior: full
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  mapper-locations: classpath*:mapper/**/*Mapper.xml
  global-config:
    banner: false
    # 逻辑删除配置
    db-config:
      id-type: AUTO
      logic-delete-field: delFlag
      logic-delete-value: 1
      logic-not-delete-value: 0
      table-underline: true