application.yaml 1.7 KB
Newer Older
Q
qinyingjie 已提交
1 2
server:
  port: 8761
Q
qinyingjie 已提交
3 4

swagger:
Q
qinyingjie 已提交
5 6
  enable: true

Q
qinyingjie 已提交
7
#兼容swagger配置
Q
qinyingjie 已提交
8
spring:
Q
qinyingjie 已提交
9 10 11 12 13 14 15 16 17 18 19 20 21
  mail:
    host: smtp.qq.com
    # 发送者的邮箱账号
    username: 327782001@qq.com
    # 邮箱密码授权码
    password: kypxnmwfniqrcbeh
    properties:
      mail:
        smtp:
          auth: true
          starttls:
            enable: true
            required: true
Q
qinyingjie 已提交
22 23 24 25 26 27 28 29 30 31 32
  redis:
    database: 0 # Redis数据库索引(默认为0)
    host: 120.79.36.53  #Redis服务器地址
    port: 6379 # Redis服务器连接端口
    password: # Redis服务器连接密码(默认为空)
    jedis:
      pool:
        max-active: 200 # 连接池最大连接数(使用负值表示没有限制)
        max-idle: 10 # 连接池中的最大空闲连接
        min-idle: 0 # 连接池中的最小空闲连接
        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
Q
qinyingjie 已提交
33 34
  mvc:
    pathmatch:
Q
qinyingjie 已提交
35 36 37 38
      matching-strategy: ant_path_matcher
  # mysql
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
Q
qinyingjie 已提交
39
    url: jdbc:mysql://120.79.36.53:3306/kwan?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
Q
qinyingjie 已提交
40
    username: root
Q
qinyingjie 已提交
41
    password: 15671628341Qwe.
Q
qinyingjie 已提交
42 43

#mybatis-plus配置
Q
qinyingjie 已提交
44 45
mybatis-plus:
  configuration:
Q
qinyingjie 已提交
46 47 48
    map-underscore-to-camel-case: true
    call-setters-on-nulls: true
    auto-mapping-behavior: full
Q
qinyingjie 已提交
49
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
Q
qinyingjie 已提交
50 51 52 53 54 55 56 57 58
  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
Q
qinyingjie 已提交
59 60 61 62 63
      table-underline: true

#logger配置
logging:
  config: classpath:logback-spring.xml