|
@@ -1,113 +0,0 @@
|
|
|
-server:
|
|
|
- port: 10010
|
|
|
- tomcat:
|
|
|
- uri-encoding: utf-8
|
|
|
- max-http-form-post-size: -1
|
|
|
- connection-timeout: 18000000s
|
|
|
-spring:
|
|
|
- servlet:
|
|
|
- multipart:
|
|
|
- # 配置上传文件的大小设置
|
|
|
- # Single file max size 即单个文件大小
|
|
|
- max-file-size: 100MB
|
|
|
- max-request-size: 100MB
|
|
|
- datasource:
|
|
|
- driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
- url: jdbc:mysql://47.100.37.243:7644/man_hour_manager?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&rewriteBatchedStatements=true
|
|
|
- username: root
|
|
|
- password: Ziyu20141026!@@
|
|
|
- hikari:
|
|
|
- maximum-pool-size: 60
|
|
|
- minimum-idle: 10
|
|
|
- max-lifetime: 180000
|
|
|
- # 数据库连接超时时间,默认30秒,即30000
|
|
|
- connection-timeout: 60000
|
|
|
- connection-test-query: SELECT 1
|
|
|
- #######redis配置######
|
|
|
- # redis
|
|
|
- redis:
|
|
|
- host: 127.0.0.1
|
|
|
- port: 6379
|
|
|
- timeout: 3
|
|
|
- # password:
|
|
|
- pool:
|
|
|
- minIdle: 1
|
|
|
- maxIdle: 10
|
|
|
- maxWait: 3
|
|
|
- maxActive: 8
|
|
|
- ####全局配置时间返回格式#####
|
|
|
- jackson:
|
|
|
- #参数意义:
|
|
|
- #JsonInclude.Include.ALWAYS 默认
|
|
|
- #JsonInclude.Include.NON_DEFAULT 属性为默认值不序列化
|
|
|
- #JsonInclude.Include.NON_EMPTY 属性为 空(””) 或者为 NULL 都不序列化
|
|
|
- #JsonInclude.Include.NON_NULL 属性为NULL 不序列化
|
|
|
- default-property-inclusion: ALWAYS
|
|
|
- time-zone: GMT+8
|
|
|
- date-format: yyyy-MM-dd HH:mm:ss
|
|
|
-
|
|
|
-##########日志配置
|
|
|
-logging:
|
|
|
- level:
|
|
|
- root: info
|
|
|
- org.mybatis: error
|
|
|
- java.sql: error
|
|
|
- org.springframework.web: error
|
|
|
- #打印sql语句
|
|
|
- com.management.platform.mapper: error
|
|
|
- path: /log/
|
|
|
- file: worktime.log
|
|
|
-##########
|
|
|
-mybatis-plus:
|
|
|
- # mapper-locations: classpath:mapper/*/*.xml
|
|
|
- # #实体扫描,多个package用逗号或者分号分隔
|
|
|
- # typeAliasesPackage: com.hssx.cloudmodel
|
|
|
- global-config:
|
|
|
- #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
|
|
|
- id-type: 0
|
|
|
- #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
|
|
|
- field-strategy: 2
|
|
|
- db-column-underline: true
|
|
|
- refresh-mapper:
|
|
|
- #################插入和更新非null判断
|
|
|
- db-config:
|
|
|
- insert-strategy: not_null
|
|
|
- update-strategy: not_null
|
|
|
- configuration:
|
|
|
- map-underscore-to-camel-case: true
|
|
|
- cache-enabled: false
|
|
|
-######mybstis配置#######
|
|
|
-mybatis:
|
|
|
- type-aliases-package: com.management.platform.entity
|
|
|
- mapper-locations: mappers/*Mapper.xml
|
|
|
-#####配置图片上传路径####
|
|
|
-upload:
|
|
|
- path: /www/staticproject/timesheet/upload/
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-##actuator健康检查配置
|
|
|
-management:
|
|
|
- security:
|
|
|
- enabled:false:
|
|
|
- server:
|
|
|
- port: 10011
|
|
|
- # endpoints:
|
|
|
- # web:
|
|
|
- # exposure:
|
|
|
- # include: "*"
|
|
|
-
|
|
|
- health:
|
|
|
- redis:
|
|
|
- enabled: false
|
|
|
-
|
|
|
-configEnv:
|
|
|
- isDev: false
|
|
|
-# SFTP上传配置
|
|
|
-sftp:
|
|
|
- isEnabled: true
|
|
|
- server: 101.132.166.205
|
|
|
- port: 22022
|
|
|
- remoteDir: /bkup/timesheet
|
|
|
- user: root
|
|
|
- password: Huoshi@2022
|