application-meenyi.yml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. server:
  2. port: 10010
  3. tomcat:
  4. uri-encoding: utf-8
  5. max-http-form-post-size: -1
  6. connection-timeout: 18000000s
  7. spring:
  8. servlet:
  9. multipart:
  10. # 配置上传文件的大小设置
  11. # Single file max size 即单个文件大小
  12. max-file-size: 100MB
  13. max-request-size: 100MB
  14. location: C:/upload/
  15. datasource:
  16. driver-class-name: com.mysql.cj.jdbc.Driver
  17. url: jdbc:mysql://127.0.0.1:3306/man_mingyi?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&useSSL=false
  18. username: root
  19. password: meenyi@123!
  20. hikari:
  21. maximum-pool-size: 60
  22. minimum-idle: 10
  23. max-lifetime: 180000
  24. # 数据库连接超时时间,默认30秒,即30000
  25. connection-timeout: 60000
  26. connection-test-query: SELECT 1
  27. #######redis配置######
  28. # redis
  29. redis:
  30. host: 127.0.0.1
  31. port: 6379
  32. timeout: 3
  33. # password:
  34. pool:
  35. minIdle: 1
  36. maxIdle: 10
  37. maxWait: 3
  38. maxActive: 8
  39. ####全局配置时间返回格式#####
  40. jackson:
  41. #参数意义:
  42. #JsonInclude.Include.ALWAYS 默认
  43. #JsonInclude.Include.NON_DEFAULT 属性为默认值不序列化
  44. #JsonInclude.Include.NON_EMPTY 属性为 空(””) 或者为 NULL 都不序列化
  45. #JsonInclude.Include.NON_NULL 属性为NULL 不序列化
  46. default-property-inclusion: ALWAYS
  47. time-zone: GMT+8
  48. date-format: yyyy-MM-dd HH:mm:ss
  49. messages:
  50. basename: i18n.messages #配置国际化资源文件路径
  51. encoding: UTF-8
  52. ##AD认证
  53. ldap:
  54. ##AD服务器IP,默认端口389
  55. urls: ldap://172.10.10.180:389
  56. ##登录账号
  57. username: OA@my.com
  58. ##密码
  59. password: meenyi.com
  60. #distinguishedName的部分节点
  61. base:
  62. dcFirst: my
  63. dcSecond: com
  64. ##########日志配置
  65. logging:
  66. level:
  67. root: info
  68. org.mybatis: debug
  69. java.sql: debug
  70. org.springframework.web: trace
  71. #打印sql语句
  72. com.management.platform.mapper: debug
  73. path: D:/worktime/server/log/
  74. file: worktime.log
  75. ##########
  76. mybatis-plus:
  77. # mapper-locations: classpath:mapper/*/*.xml
  78. # #实体扫描,多个package用逗号或者分号分隔
  79. # typeAliasesPackage: com.hssx.cloudmodel
  80. global-config:
  81. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  82. id-type: 0
  83. #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  84. field-strategy: 2
  85. db-column-underline: true
  86. refresh-mapper:
  87. #################插入和更新非null判断
  88. db-config:
  89. insert-strategy: not_null
  90. update-strategy: not_null
  91. configuration:
  92. map-underscore-to-camel-case: true
  93. cache-enabled: false
  94. ######mybstis配置#######
  95. mybatis:
  96. type-aliases-package: com.management.platform.entity
  97. mapper-locations: mappers/*Mapper.xml
  98. #####配置图片上传路径####
  99. upload:
  100. path: D:/staticproject/timesheet/upload/
  101. referer:
  102. refererDomain:
  103. - localhost
  104. - mytime.ttkuaiban.com
  105. - 172.10.21.185
  106. ##actuator健康检查配置
  107. management:
  108. security:
  109. enabled:false:
  110. server:
  111. port: 10012
  112. # endpoints:
  113. # web:
  114. # exposure:
  115. # include: "*"
  116. health:
  117. redis:
  118. enabled: false
  119. ldap:
  120. enabled: false
  121. configEnv:
  122. isDev: false
  123. # 是否是私有化部署,企业内部应用
  124. isPrivateDeploy: true
  125. privateDeployURL:
  126. pcUrl: http://dev.huoshishanxin.com/#/
  127. mobUrl: http://dev.huoshishanxin.com/#/
  128. # SFTP上传配置
  129. sftp:
  130. isEnabled: false
  131. server: 101.132.166.205
  132. port: 22022
  133. remoteDir: /bkup/timesheet
  134. user: root
  135. password: Huoshi@2022