#Spring配置
|
spring:
|
profiles:
|
active:
|
# - dev
|
- test
|
# - prod
|
|
devtools:
|
restart:
|
enabled: true
|
servlet:
|
multipart:
|
max-file-size: -1
|
max-request-size: -1
|
main:
|
#可以重复命名配置
|
allow-bean-definition-overriding: true
|
allow-circular-references: true
|
# Swagger配置
|
mvc:
|
pathmatch:
|
matching-strategy: ANT_PATH_MATCHER
|
|
#server配置
|
server:
|
#服务时限配置
|
tomcat:
|
min-spare-threads: 100
|
max-threads: 256
|
connection-timeout: 8000
|
main:
|
#可以重复命名配置
|
allow-bean-definition-overriding: true
|
|
|
|
#ribbon配置
|
ribbon:
|
#服务之间调用,请求处理超时时间
|
ReadTimeout: 120000
|
#服务之间调用,请求连接的超时时间
|
ConnectTimeout: 30000
|
|
#mybatis-plus配置
|
mybatis-plus:
|
configuration:
|
#控制台输出sql语句
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
# log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
|
#配置返回数据库(column下划线命名&&返回java实体是驼峰命名),自动匹配无需as(没开启这个,SQL需要写as)
|
ap-underscore-to-camel-case: true
|
#如何自动映射列到字段或属性,NONE:表示取消自动映射;PARTIAL:只会自动映射没有定义嵌套结果集映射的结果集。FULL:会自动映射任意复杂的结果集(无论是否嵌套)。默认是partial,这是一种全局设置
|
auto-mapping-behavior: full
|
global-config:
|
db-config:
|
#驼峰下划线转换
|
column-underline: false
|
#数据库大写下划线转换
|
capital-mode: true
|
#全局逻辑删除的实体字段名
|
#logic-delete-field: flag
|
#逻辑未删除值(默认为 0),实体类字段需要加上@TableLogic
|
logic-not-delete-value: 0
|
#逻辑已删除值(默认为 1)
|
logic-delete-value: 1
|
#字段策略,IGNORED:忽略判断,NOT_NULL:非null判断,NOT_EMPTY:非空判断,DEFAULT:默认,NEVER:不加入sql
|
update-strategy: IGNORED
|
mapper-locations: classpath*:/cn/huge/*/*/dao/mapper/xml/*Mapper.xml, classpath:/META-INF/modeler-mybatis-mappings/*.xml
|
configuration-properties:
|
blobType: BLOB
|
boolValue: TRUE
|
prefix:
|
|
#flowable配置
|
flowable:
|
async-executor-activate: false
|