application.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. server:
  2. port: 8083
  3. session:
  4. timeout: 1440m
  5. servlet:
  6. context-path: /av_ja
  7. tomcat:
  8. uri-encoding: UTF-8
  9. max-threads: 1000
  10. max-http-header-size: 102400
  11. spring:
  12. application:
  13. name: transcoding
  14. main:
  15. allow-circular-references: true
  16. datasource:
  17. username: root
  18. password: UUtfNu3jVQy3ZA@#
  19. # username: root
  20. # password: 123456
  21. url: jdbc:mysql://localhost:3306/video_wzsz?characterEncoding=UTF-8&useSSL=false&useUnicode=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  22. driver-class-name: com.mysql.cj.jdbc.Driver
  23. #spring官方推荐 性能最强,没有之一
  24. hikari:
  25. pool-name: Retail_HikariCP
  26. minimum-idle: 5 #最小空闲连接数量
  27. idle-timeout: 30000 #空闲连接存活最大时间,默认600000(10分钟)
  28. maximum-pool-size: 10 #连接池最大连接数,默认是10
  29. auto-commit: true #此属性控制从池返回的连接的默认自动提交行为,默认值:true
  30. max-lifetime: 120000 #此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认1800000即30分钟
  31. connection-timeout: 30000 #数据库连接超时时间,默认30秒,即30000
  32. connection-test-query: SELECT 1
  33. jackson:
  34. date-format: yyyy-MM-dd HH:mm:ss
  35. time-zone: GMT+8
  36. # default-property-inclusion: non_null
  37. devtools:
  38. restart:
  39. enabled: true
  40. additional-paths: src/main/java
  41. #分页pageHelper
  42. pagehelper:
  43. helperDialect: mysql
  44. reasonable: true #为了使用输入页数为负或者超出最大页时候使页数为最小或最大值
  45. supportMethodsArguments: true
  46. params: count=countSql
  47. pageSizeZero: true
  48. mybatis-plus:
  49. # spring boot集成mybatis的方式打印sql
  50. configuration:
  51. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  52. #关闭sql打印
  53. log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
  54. myapp:
  55. mypre: VIDEO