application.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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: 10000MB
  13. max-request-size: 10000MB
  14. datasource:
  15. driver-class-name: com.mysql.cj.jdbc.Driver
  16. url: jdbc:mysql://118.190.47.230:3306/man_hour_manager?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
  17. username: root
  18. password: p011430seya1026
  19. hikari:
  20. maximum-pool-size: 10
  21. minimum-idle: 3
  22. max-lifetime: 30000
  23. connection-test-query: SELECT 1
  24. #######redis配置######
  25. # redis
  26. redis:
  27. host: 127.0.0.1
  28. port: 6379
  29. timeout: 3
  30. # password:
  31. pool:
  32. minIdle: 1
  33. maxIdle: 10
  34. maxWait: 3
  35. maxActive: 8
  36. ##########日志配置
  37. logging:
  38. level:
  39. root: info
  40. org.mybatis: debug
  41. java.sql: debug
  42. org.springframework.web: trace
  43. #打印sql语句
  44. com.management.platform.mapper: debug
  45. path: E:/
  46. ##########
  47. mybatis-plus:
  48. # mapper-locations: classpath:mapper/*/*.xml
  49. # #实体扫描,多个package用逗号或者分号分隔
  50. # typeAliasesPackage: com.hssx.cloudmodel
  51. global-config:
  52. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  53. id-type: 0
  54. #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  55. field-strategy: 2
  56. db-column-underline: true
  57. refresh-mapper:
  58. #################插入和更新非null判断
  59. db-config:
  60. insert-strategy: not_null
  61. update-strategy: not_null
  62. configuration:
  63. map-underscore-to-camel-case: true
  64. cache-enabled: false
  65. mybatis:
  66. type-aliases-package: com.management.platform.entity
  67. mapper-locations: mappers/*Mapper.xml
  68. ######mybstis配置#######