application.yml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. # 开发环境配置
  2. server:
  3. # 服务器的HTTP端口,默认为8080
  4. port: 8088
  5. servlet:
  6. # 应用的访问路径
  7. context-path: /api
  8. tomcat:
  9. # tomcat的URI编码
  10. uri-encoding: UTF-8
  11. # tomcat最大线程数,默认为200
  12. max-threads: 800
  13. # Tomcat启动初始化的线程数,默认值25
  14. min-spare-threads: 30
  15. # 日志配置
  16. logging:
  17. level:
  18. com.hz: debug
  19. org.springframework: warn
  20. # Spring配置
  21. spring:
  22. datasource:
  23. type: com.zaxxer.hikari.HikariDataSource
  24. driver-class-name: com.mysql.cj.jdbc.Driver
  25. # url: jdbc:mysql://172.16.121.243:3306/db_omes_dashboard?useUnicode=true&characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&tinyInt1isBit=false
  26. url: jdbc:mysql://192.168.0.40:3306/netty_demo?useUnicode=true&characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&tinyInt1isBit=false
  27. username: root
  28. # password: Qx123456
  29. password: Qx123456
  30. # 资源信息
  31. messages:
  32. # 国际化资源文件路径
  33. basename: i18n/messages
  34. profiles:
  35. active: ${PRO_ENV:local}
  36. # 文件上传
  37. servlet:
  38. multipart:
  39. # 单个文件大小
  40. max-file-size: 200MB
  41. # 设置总上传的文件大小
  42. max-request-size: 200MB
  43. # redis 配置
  44. redis:
  45. # 地址
  46. host: 192.168.0.41
  47. # host: localhost
  48. # 端口,默认为6379
  49. port: 6379
  50. # 数据库索引
  51. database: 0
  52. # 密码 123456
  53. password:
  54. # password: QkNtEheRF*RqJvM
  55. # 连接超时时间
  56. timeout: 10s
  57. lettuce:
  58. pool:
  59. # 连接池中的最小空闲连接
  60. min-idle: 0
  61. # 连接池中的最大空闲连接
  62. max-idle: 8
  63. # 连接池的最大数据库连接数
  64. max-active: 8
  65. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  66. max-wait: -1ms
  67. # token配置
  68. token:
  69. # 令牌自定义标识
  70. header: Authorization
  71. # 令牌密钥
  72. secret: abcdefghijklmnopqrstuvwxyz
  73. # 令牌有效期(默认30分钟)
  74. expireTime: 1000
  75. # MyBatis配置
  76. mybatis-plus:
  77. mapper-locations: mapper/*.xml
  78. typeAliasesPackage: com.**.entity
  79. global-config:
  80. banner: false
  81. configuration:
  82. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  83. # PageHelper分页插件
  84. pagehelper:
  85. helperDialect: mysql
  86. supportMethodsArguments: true
  87. params: count=countSql
  88. # Swagger配置
  89. swagger:
  90. # 是否开启swagger
  91. enabled: true
  92. # 请求前缀
  93. # pathMapping: /dev-api
  94. pathMapping:
  95. # 防止XSS攻击
  96. xss:
  97. # 过滤开关
  98. enabled: true
  99. # 排除链接(多个用逗号分隔)
  100. excludes: /system/notice
  101. # 匹配链接
  102. urlPatterns: /system/*,/monitor/*,/tool/*
  103. ok:
  104. http:
  105. connect-timeout: 60
  106. read-timeout: 60
  107. write-timeout: 60
  108. # 连接池中整体的空闲连接的最大数量
  109. max-idle-connections: 200
  110. # 连接空闲时间最多为 300 秒
  111. keep-alive-duration: 300
  112. # 作为客户端请求的服务端地址
  113. netty:
  114. tcp:
  115. server:
  116. # 作为客户端请求的服务端地址
  117. host: localhost
  118. # 作为客户端请求的服务端端口
  119. port: 9000
  120. client:
  121. # 作为服务端开放给客户端的端口
  122. port: 9000