application.yml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. # 项目相关配置
  2. inspur:
  3. # 名称
  4. name: Inspur
  5. # 版本
  6. version: 3.8.8
  7. # 版权年份
  8. copyrightYear: 2024
  9. # 文件路径 示例( Windows配置D:/inspur/uploadPath,Linux配置 /home/inspur/uploadPath)
  10. profile: /data/inspur/elevator/96133/uploadPath
  11. # 获取ip地址开关
  12. addressEnabled: false
  13. # 验证码类型 math 数字计算 char 字符验证
  14. captchaType: math
  15. # wsPath: ws://192.168.1.151:80/openapi/v1.0/subscribe?access_token=
  16. wsPath: ws://10.219.166.91:80/openapi/v1.0/subscribe?access_token=
  17. # 开发环境配置
  18. server:
  19. # 服务器的HTTP端口,默认为8080
  20. port: 9610
  21. servlet:
  22. # 应用的访问路径
  23. context-path: /workOrder
  24. tomcat:
  25. # tomcat的URI编码
  26. uri-encoding: UTF-8
  27. # 连接数满后的排队数,默认为100
  28. accept-count: 1000
  29. threads:
  30. # tomcat最大线程数,默认为200
  31. max: 800
  32. # Tomcat启动初始化的线程数,默认值10
  33. min-spare: 100
  34. # 日志配置
  35. logging:
  36. level:
  37. com.inspur: debug
  38. org.springframework: warn
  39. # 用户配置
  40. user:
  41. password:
  42. # 密码最大错误次数
  43. maxRetryCount: 5
  44. # 密码锁定时间(默认10分钟)
  45. lockTime: 10
  46. platform: backendApi@123
  47. # Spring配置
  48. spring:
  49. # 资源信息
  50. messages:
  51. # 国际化资源文件路径
  52. basename: i18n/messages
  53. profiles:
  54. # active: mysql
  55. active: druid
  56. # 文件上传
  57. servlet:
  58. multipart:
  59. # 单个文件大小
  60. max-file-size: 10MB
  61. # 设置总上传的文件大小
  62. max-request-size: 20MB
  63. # 服务模块
  64. devtools:
  65. restart:
  66. # 热部署开关
  67. enabled: true
  68. # redis 配置
  69. redis:
  70. # 地址
  71. # host: 117.73.3.135
  72. host: 127.0.0.1
  73. # 端口,默认为6379
  74. port: 6379
  75. # 数据库索引
  76. database: 12
  77. # 密码
  78. # password: Hycpb@123
  79. password:
  80. # 连接超时时间
  81. timeout: 10s
  82. lettuce:
  83. pool:
  84. # 连接池中的最小空闲连接
  85. min-idle: 0
  86. # 连接池中的最大空闲连接
  87. max-idle: 8
  88. # 连接池的最大数据库连接数
  89. max-active: 8
  90. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  91. max-wait: -1ms
  92. # token配置
  93. token:
  94. # 令牌自定义标识
  95. header: Authorization
  96. # 令牌密钥
  97. secret: abcdefghijklmnopqrstuvwxyz
  98. # 令牌有效期(默认30分钟)
  99. expireTime: 1440
  100. # MyBatis配置
  101. mybatis:
  102. # 搜索指定包别名
  103. typeAliasesPackage: com.inspur.**.domain
  104. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  105. mapperLocations: classpath*:mapper/**/*Mapper.xml
  106. # 加载全局的配置文件
  107. configLocation: classpath:mybatis/mybatis-config.xml
  108. # PageHelper分页插件
  109. pagehelper:
  110. # helperDialect: mysql
  111. helperDialect: oracle
  112. supportMethodsArguments: true
  113. params: count=countSql
  114. # Swagger配置
  115. swagger:
  116. # 是否开启swagger
  117. enabled: false
  118. # 请求前缀
  119. pathMapping: /dev-api
  120. # 防止XSS攻击
  121. xss:
  122. # 过滤开关
  123. enabled: true
  124. # 排除链接(多个用逗号分隔)
  125. excludes: /system/notice
  126. # 匹配链接
  127. urlPatterns: /system/*,/monitor/*,/tool/*
  128. pbx:
  129. # url: http://192.168.1.151:80
  130. url: http://10.219.166.91:80
  131. secret: nAIO3LtgcIJZ8GItx06YwTmJ5C3TbtsX
  132. clientId: GWJ4fFfZ0KDjO2UD8S2e6tL05MexHetI
  133. # 分机测试dev 正式环境用prod
  134. # active: dev
  135. active: prod
  136. # 手机归属地API地址
  137. api:
  138. url: http://10.10.11.240:15851/phoneApi/mobile?mobile=
  139. appcode: APPCODE 35aa2f6993d84cfab3aa822097468ca1