application-dev.yml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. server:
  2. port: 18090
  3. tomcat:
  4. max-swallow-size: -1
  5. max-upload-size: 200MB
  6. basedir: /app/temp
  7. servlet:
  8. context-path: /router/rest
  9. compression:
  10. enabled: true
  11. min-response-size: 1024
  12. mime-types: application/javascript,application/json,application/xml,text/html,text/xml,text/plain,text/css,image/*
  13. management:
  14. endpoints:
  15. web:
  16. exposure:
  17. include: metrics,httptrace
  18. spring:
  19. servlet:
  20. multipart:
  21. max-file-size: 200MB
  22. max-request-size: 200MB
  23. ## quartz定时任务,采用数据库方式
  24. # quartz:
  25. # job-store-type: jdbc
  26. #json 时间戳统一转换
  27. jackson:
  28. date-format: yyyy-MM-dd HH:mm:ss
  29. time-zone: GMT+8
  30. aop:
  31. proxy-target-class: true
  32. #配置freemarker
  33. freemarker:
  34. # 设置模板后缀名
  35. suffix: .ftl
  36. # 设置文档类型
  37. content-type: text/html
  38. # 设置页面编码格式
  39. charset: UTF-8
  40. # 设置页面缓存
  41. cache: false
  42. prefer-file-system-access: false
  43. # 设置ftl文件路径
  44. template-loader-path:
  45. - classpath:/templates
  46. # 设置静态文件路径,js,css等 #redis 配置
  47. # cloud:
  48. # nacos:
  49. # discovery:
  50. # server-addr: http://192.168.1.93:8848
  51. # group: DEV
  52. # namespace: 1b26d8af-529f-4118-9519-47b6a4aaaa4e
  53. # username: nacos
  54. # password: nacos
  55. redis:
  56. host: 192.168.1.69
  57. port: 6379
  58. database: 13
  59. lettuce:
  60. pool:
  61. max-wait: 100000
  62. max-idle: 10
  63. max-active: 100
  64. timeout: 5000
  65. password: 123456
  66. mvc:
  67. static-path-pattern: /**
  68. resource:
  69. static-locations: classpath:/static/,classpath:/public/
  70. autoconfigure:
  71. exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
  72. datasource:
  73. dynamic:
  74. druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置)
  75. # 连接池的配置信息
  76. # 初始化大小,最小,最大
  77. initial-size: 5
  78. min-idle: 5
  79. maxActive: 20
  80. # 配置获取连接等待超时的时间
  81. maxWait: 60000
  82. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  83. timeBetweenEvictionRunsMillis: 60000
  84. # 配置一个连接在池中最小生存的时间,单位是毫秒
  85. minEvictableIdleTimeMillis: 300000
  86. validationQuery: SELECT 1 FROM DUAL
  87. testWhileIdle: true
  88. testOnBorrow: false
  89. testOnReturn: false
  90. # 打开PSCache,并且指定每个连接上PSCache的大小
  91. poolPreparedStatements: true
  92. maxPoolPreparedStatementPerConnectionSize: 20
  93. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  94. filters: stat,wall,slf4j
  95. # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
  96. connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
  97. datasource:
  98. master:
  99. driver-class-name: com.mysql.jdbc.Driver
  100. url: jdbc:mysql://192.168.1.69:3306/sp_sales_dev?useSSL=false&useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
  101. username: storlead
  102. password: DW8YRN*5!6u&Agt7N
  103. # driver-class-name: com.mysql.jdbc.Driver
  104. # url: jdbc:mysql://mysql.test.storlead.com:39091/sp_sales_test?useSSL=false&useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
  105. # username: root
  106. # password: rCgRgLjH99Xvg5BN
  107. # driver-class-name: com.mysql.jdbc.Driver
  108. # url: jdbc:mysql://139.159.206.64:65369/sp_sales_system_prod?useSSL=false&useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&rewriteBatchedStatements=true
  109. # username: sp_sales_prod
  110. # password: MsKLJue01MLIYnd2*0ReMQ
  111. management:
  112. driver-class-name: com.mysql.jdbc.Driver
  113. url: jdbc:mysql://mysql.test.storlead.com:39091/storlead_test?useSSL=false&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&noDatetimeStringSync=true&serverTimezone=Asia/Shanghai
  114. username: root
  115. password: rCgRgLjH99Xvg5BN
  116. # driver-class-name: com.mysql.jdbc.Driver
  117. # url: jdbc:mysql://139.159.206.64:65369/storlead_prod?useSSL=false&useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&rewriteBatchedStatements=true
  118. # username: storlead_platform
  119. # password: QkfgG7Cw6E&*PlvYYw==oBfjSf2zw
  120. oa:
  121. driver-class-name: com.mysql.jdbc.Driver
  122. url: jdbc:mysql://139.159.206.64:65369/storlead_ecology_prod?useSSL=false&useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
  123. username: storlead_ecology
  124. password: 3raNoDvbo7jqbwtedQGQ
  125. ai:
  126. providers:
  127. # OpenAI配置
  128. openai:
  129. enabled: true
  130. api-key:
  131. base-url: http://47.112.196.2:11434
  132. default-model: deepseek-r1:14b
  133. timeout-seconds: 30
  134. max-retries: 3
  135. default-temperature: 0.7
  136. default-max-tokens: 1000
  137. stream-enabled: true
  138. supported-models:
  139. - deepseek-r1:14b
  140. - deepseek-r1:8b
  141. - gpt-oss:20b
  142. #mybatis plus 设置
  143. mybatis-plus:
  144. mapper-locations: classpath:/mapper/*/*Mapper.xml
  145. # 实体扫描,多个 package 用逗号或者分号分隔
  146. type-aliases-package: com.storlead.sales.modules.*.pojo.entity
  147. typeEnumsPackage: com.storlead.sales.modules.console.enums;com.storlead.sales.modules.perform.enums
  148. # configuration:
  149. #配置显示查询SQL
  150. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  151. # default-enum-type-handler: org.apache.ibatis.type.EnumOrdinalTypeHandler
  152. global-config:
  153. # 关闭MP3.0自带的banner
  154. banner: false
  155. db-config:
  156. #主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)";
  157. id-type: 4
  158. # 默认数据库表下划线命名
  159. table-underline: true
  160. #configuration:
  161. # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
  162. #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  163. #应用专用配置
  164. lingcun :
  165. path :
  166. #文件上传根目录 设置
  167. upload: /app/upload
  168. #webapp文件路径
  169. webapp: /app/upload
  170. shiro:
  171. excludeUrls: /lingcun/login,/lingcun/logout,/lingcun/getCheckCode
  172. # 表单设计器配置
  173. desform:
  174. # 主题颜色(仅支持 16进制颜色代码)
  175. theme-color: "#1890ff"
  176. # 在线预览文件服务器地址配置
  177. file-view-domain: http://localhost:8080/api/dist/app/view/
  178. sp:
  179. oss:
  180. endpoint: oss-cn-shenzhen.aliyuncs.com
  181. accessKey: LTAI5t5n6K9ramopnY4KNQnM
  182. # LTAIWmbTnmF9lzjy
  183. secretKey: xmA6wObeUAKDux92DX3qfLNWAQAQZm
  184. # v346LNyCRIZCvTTgYTr5ikJsneBAaZ
  185. bucketName: sp-sales-test
  186. message:
  187. task:
  188. enable : false
  189. send:
  190. enable : true
  191. storlead:
  192. project:
  193. baseUrl: http://127.0.0.1:8101/sp-project
  194. #Mybatis输出sql日志
  195. logging:
  196. file:
  197. # 日志存放目录
  198. path: /app/sp/${spring.application.name}/log
  199. level:
  200. root: info
  201. io:
  202. swagger:
  203. models:
  204. parameters:
  205. AbstractSerializableParameter: error
  206. c:
  207. a:
  208. icatch:
  209. provider:
  210. imp:
  211. AssemblerImp: debug
  212. o:
  213. s:
  214. h:
  215. c:
  216. j:
  217. Jackson2ObjectMapperBuilder: off # 禁止okhttp4 打印警告日志 For Jackson Kotlin classes support please add "com.fasterxml.jackson.module:jackson-module-kotlin" to the classpath
  218. com:
  219. storlead: debug
  220. # 企业微信
  221. #corp-wechat:
  222. # corpId: ww5323bd8ab4394132
  223. # # 这个是通讯录secret只能用来调用通讯录相关API使用
  224. # corpAddressSecret: FE-ofiE08oeT8DsccbigqPFWl6Nk8LRKBFffpL76Z-M
  225. # corpAgentId: 1000024
  226. # corpAgentSecret: T2N9RAs0ATGrgUEedAovo80a1Z4wpepO9eKn-_5qsBo
  227. environment: dev
  228. domainname: https://sales.test.storlead.com
  229. system:
  230. config:
  231. orgSyncMode: 0 # 0:系统维护 1:同步OA, 2:同步企业微信
  232. license:
  233. httpUrl: http://localhost:10010${server.servlet.context-path}/tenant/license/getLicenseCode
  234. activationCode: "activationCode"
  235. file:
  236. mode: 1
  237. filePath: /files
  238. active: dev
  239. mac:
  240. path: ~/file/
  241. avatar: ~/avatar/
  242. linux:
  243. path: /app/files/
  244. avatar: /app/files/avatar/
  245. windows:
  246. path: D:\mail\attachment\
  247. avatar: D:\mail\
  248. jpeg: D:\mail\image\
  249. # 文件大小 /M
  250. maxSize: 100
  251. avatarMaxSize: 5
  252. feign:
  253. user-service:
  254. app-name: sp-internal-gateway
  255. context-path: /router/rest