application.yml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. # 项目相关配置
  2. ruoyi:
  3. # 名称
  4. name: GameApi
  5. # 版本
  6. version: 1.0.0
  7. # 版权年份
  8. copyrightYear: 2025
  9. # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
  10. # profile: D:/ruoyi/uploadPath
  11. # 获取ip地址开关
  12. # addressEnabled: false
  13. # 验证码类型 math 数字计算 char 字符验证
  14. # captchaType: math
  15. # 开发环境配置
  16. server:
  17. # 服务器的HTTP端口,默认为8080
  18. port: 8081
  19. servlet:
  20. # # 应用的访问路径
  21. context-path: /voice
  22. tomcat:
  23. # tomcat的URI编码
  24. uri-encoding: UTF-8
  25. # 连接数满后的排队数,默认为100
  26. accept-count: 1000
  27. threads:
  28. # tomcat最大线程数,默认为200
  29. max: 800
  30. # Tomcat启动初始化的线程数,默认值10
  31. min-spare: 100
  32. spring:
  33. datasource:
  34. url: jdbc:mysql://60.205.122.15:3485/hcp?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  35. # url: jdbc:mysql://47.93.254.212:3485/hcp?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  36. # username: root
  37. username: root
  38. # password: csyr#test250106
  39. password: SkyMedic$240307
  40. driver-class-name: com.mysql.cj.jdbc.Driver
  41. # MyBatis 配置
  42. #mybatis:
  43. # # typeAliasesPackage: com.gov.yaoud.his.**.entity
  44. # mapper-locations: classpath:mapper/**/*.xml # XML映射文件位置
  45. # type-aliases-package: com.yaorong.eai.web.**.vo # 实体类包路径
  46. # configuration:
  47. # map-underscore-to-camel-case: true # 开启驼峰命名转换
  48. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 日志实现
  49. ## 日志配置
  50. #logging:
  51. # level:
  52. # com.yaorong: debug
  53. # org.springframework: warn
  54. # 用户配置
  55. #user:
  56. # password:
  57. # # 密码最大错误次数
  58. # maxRetryCount: 5
  59. # # 密码锁定时间(默认10分钟)
  60. # lockTime: 10
  61. # Spring配置
  62. #spring:
  63. # # 资源信息
  64. # messages:
  65. # # 国际化资源文件路径
  66. # basename: i18n/messages
  67. # profiles:
  68. # active: druid
  69. # # 文件上传
  70. # servlet:
  71. # multipart:
  72. # # 单个文件大小
  73. # max-file-size: 10MB
  74. # # 设置总上传的文件大小
  75. # max-request-size: 20MB
  76. # # 服务模块
  77. # devtools:
  78. # restart:
  79. # # 热部署开关
  80. # enabled: true
  81. # # redis 配置
  82. # redis:
  83. # # 地址
  84. ## host: localhost
  85. # host: 60.205.122.15
  86. # # 端口,默认为6379
  87. # port: 6369
  88. # # 数据库索引
  89. # database: 8
  90. # # 密码
  91. # password: SkyMedic$250106
  92. # # 连接超时时间
  93. # timeout: 10s
  94. # lettuce:
  95. # pool:
  96. # # 连接池中的最小空闲连接
  97. # min-idle: 0
  98. # # 连接池中的最大空闲连接
  99. # max-idle: 8
  100. # # 连接池的最大数据库连接数
  101. # max-active: 8
  102. # # #连接池最大阻塞等待时间(使用负值表示没有限制)
  103. # max-wait: -1ms
  104. #
  105. ## token配置
  106. #token:
  107. # # 令牌自定义标识
  108. # header: Authorization
  109. # # 令牌密钥
  110. # secret: abcdefghijklmnopqrstuvwxyz
  111. # # 令牌有效期(默认30分钟)
  112. # expireTime: 30
  113. #
  114. ## MyBatis配置
  115. #mybatis:
  116. # # 搜索指定包别名
  117. # typeAliasesPackage: com.ruoyi.**.domain
  118. # # 配置mapper的扫描,找到所有的mapper.xml映射文件
  119. # mapperLocations: classpath*:mapper/**/*Mapper.xml
  120. # # 加载全局的配置文件
  121. # configLocation: classpath:mybatis/mybatis-config.xml
  122. #
  123. ## PageHelper分页插件
  124. #pagehelper:
  125. # helperDialect: mysql
  126. # supportMethodsArguments: true
  127. # params: count=countSql
  128. #
  129. ## Swagger配置
  130. #swagger:
  131. # # 是否开启swagger
  132. # enabled: true
  133. # # 请求前缀
  134. # pathMapping: /dev-api
  135. # 防止XSS攻击
  136. xss:
  137. # 过滤开关
  138. enabled: true
  139. # 排除链接(多个用逗号分隔)
  140. excludes: /system/notice
  141. # 匹配链接
  142. urlPatterns: /system/*,/monitor/*,/tool/*