application.yaml 1.6 KB
Newer Older
Q
qinyingjie 已提交
1
server:
2
  port: 8080
Q
qinyingjie 已提交
3 4 5 6 7
  servlet:
    encoding:
      force: true
      charset: UTF-8
      enabled: true
Q
qinyingjie 已提交
8

Q
qinyingjie 已提交
9
#兼容swagger配置
Q
qinyingjie 已提交
10
spring:
11 12
  profiles:
    active: local
13 14
  application:
    name: spring-boot-name
Q
qinyingjie 已提交
15 16 17 18 19 20 21 22
  #项目启动时创建数据表的 SQL 脚本,该脚本由 Spring Batch 提供
  #spring.datasource.schema=classpath:/org/springframework/batch/core/schema-mysql.sql
  # 在项目启动时执行建表 SQL
  batch:
    initialize-schema: always
    # 禁止 Spring Batch 自动执行,在 SpringBoot 中,默认情况,当项目启动时就会执行配置好的批理操作,添加了该配置后则不会自动执行,而需要用户手动触发执行
    job:
      enabled: false
Q
qinyingjie 已提交
23 24
  mvc:
    pathmatch:
Q
qinyingjie 已提交
25
      matching-strategy: ant_path_matcher
26 27
#seata:
#  tx-service-group: default_tx_group
28

29 30 31 32 33 34 35 36 37
#seata:
#  application-id: spring-boot-name
#  tx-service-group: my-tx-group
#  service:
#    vgroup-mapping:
#      my-tx-group: seata-server
#    grouplist:
#      seata-server: 127.0.0.1:8091
#  enabled: true
38 39 40



Q
qinyingjie 已提交
41
#mybatis-plus配置
Q
qinyingjie 已提交
42 43
mybatis-plus:
  configuration:
Q
qinyingjie 已提交
44 45 46
    map-underscore-to-camel-case: true
    call-setters-on-nulls: true
    auto-mapping-behavior: full
47
  #    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
48
  #    log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl  #关闭sql日志
49

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