application.yml 1.43 KB
Newer Older
licc's avatar
licc committed
1 2 3
server:
  tomcat:
    uri-encoding: UTF-8
liqin's avatar
liqin committed
4 5 6
    threads:
      max: 1000
      min-spare: 30
liqin's avatar
liqin committed
7 8
    max-swallow-size: 1024MB
    max-http-form-post-size: 1024MB
9 10

  #      1 073 741 824
licc's avatar
licc committed
11
  port: 8080
liqin's avatar
liqin committed
12
  servlet:
licc's avatar
licc committed
13
    context-path: /data
licc's avatar
licc committed
14 15 16 17 18 19

spring:
  main:
    allow-bean-definition-overriding: true
  # 环境 dev|test|prod
  profiles:
licc's avatar
licc committed
20
    active: dev
licc's avatar
licc committed
21 22 23 24 25 26
  # jackson时间格式化
  jackson:
    time-zone: GMT+8
    date-format: yyyy-MM-dd HH:mm:ss
  servlet:
    multipart:
27 28
      max-file-size: 1024MB
      max-request-size: 2048MB
licc's avatar
licc committed
29 30 31 32 33 34 35 36
      enabled: true
  mvc:
    throw-exception-if-no-handler-found: true
#  resources:
#    add-mappings: false

#mybatis
mybatis-plus:
liqin's avatar
liqin committed
37
  check-config-location: true
licc's avatar
licc committed
38 39
  mapper-locations: classpath*:/mapper/**/*.xml
  #实体扫描,多个package用逗号或者分号分隔
liqin's avatar
liqin committed
40
  type-aliases-package: cn.wisenergy.model.app.**
licc's avatar
licc committed
41 42 43 44 45 46 47 48 49 50 51
  global-config:
    #数据库相关配置
    db-config:
      #主键类型  AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
      id-type: AUTO
      #驼峰下划线转换
      logic-delete-value: -1
      logic-not-delete-value: 0
    banner: false
  #原生配置
  configuration:
liqin's avatar
liqin committed
52 53
    lazy-loading-enabled: true
    aggressive-lazy-loading: false
licc's avatar
licc committed
54 55 56
    map-underscore-to-camel-case: true
    cache-enabled: false
    call-setters-on-nulls: true
liqin's avatar
liqin committed
57
    jdbc-type-for-null: 'null'
liqin's avatar
liqin committed
58
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl