application-dev.yml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. server:
  2. port: 8080
  3. undertow:
  4. # max-http-post-size: 10MB # 平替 tomcat server.tomcat.max-swallow-siz, undertow该值默认为-1
  5. worker-threads: 16 # 4核CPU标准配置
  6. buffers:
  7. websocket: 8192 # WebSocket缓冲 以字节为单位,这里设置为8 KB
  8. io: 16384 # IO操作缓冲 以字节为单位,这里设置为16 KB
  9. error:
  10. include-exception: true
  11. include-stacktrace: ALWAYS
  12. include-message: ALWAYS
  13. servlet:
  14. context-path: /jeecg-boot
  15. compression:
  16. enabled: true
  17. min-response-size: 1024
  18. mime-types: application/javascript,application/json,application/xml,text/html,text/xml,text/plain,text/css,image/*
  19. management:
  20. endpoints:
  21. web:
  22. exposure:
  23. include: metrics,jeecghttptrace
  24. spring:
  25. flyway:
  26. # 是否启用flyway
  27. enabled: true
  28. # 是否关闭要清除已有库下的表功能,生产环境必须为true,否则会删库,非常重要!!!
  29. clean-disabled: true
  30. servlet:
  31. multipart:
  32. max-file-size: 10MB
  33. max-request-size: 10MB
  34. mail:
  35. # 定时任务发送邮件
  36. timeJobSend: false
  37. host: smtp.163.com
  38. username: jeecgos@163.com
  39. password: ??
  40. properties:
  41. mail.smtp.timeout: 10000 # 连接超时(毫秒)
  42. mail.smtp.connectiontimeout: 10000 # 连接超时(毫秒)
  43. mail.smtp.writetimeout: 10000 # 写入超时(毫秒)
  44. mail.smtp.auth: true
  45. smtp.ssl.enable: true
  46. mail.debug: true # 启用调试模式(查看详细日志)
  47. ## quartz定时任务,采用数据库方式
  48. quartz:
  49. job-store-type: jdbc
  50. initialize-schema: embedded
  51. #定时任务启动开关,true-开 false-关
  52. auto-startup: true
  53. #延迟1秒启动定时任务
  54. startup-delay: 1s
  55. #启动时更新己存在的Job
  56. overwrite-existing-jobs: true
  57. properties:
  58. org:
  59. quartz:
  60. scheduler:
  61. instanceName: MyScheduler
  62. instanceId: AUTO
  63. jobStore:
  64. class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
  65. driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
  66. tablePrefix: QRTZ_
  67. isClustered: true
  68. misfireThreshold: 12000
  69. clusterCheckinInterval: 15000
  70. threadPool:
  71. class: org.quartz.simpl.SimpleThreadPool
  72. threadCount: 10
  73. threadPriority: 5
  74. threadsInheritContextClassLoaderOfInitializingThread: true
  75. #json 时间戳统一转换
  76. jackson:
  77. date-format: yyyy-MM-dd HH:mm:ss
  78. time-zone: GMT+8
  79. jpa:
  80. open-in-view: false
  81. aop:
  82. proxy-target-class: true
  83. #配置freemarker
  84. freemarker:
  85. # 设置模板后缀名
  86. suffix: .ftl
  87. # 设置文档类型
  88. content-type: text/html
  89. # 设置页面编码格式
  90. charset: UTF-8
  91. # 设置页面缓存
  92. cache: false
  93. prefer-file-system-access: false
  94. # 设置ftl文件路径
  95. template-loader-path:
  96. - classpath:/templates
  97. template_update_delay: 0
  98. # 设置静态文件路径,js,css等
  99. mvc:
  100. static-path-pattern: /**
  101. #Spring Boot 2.6+后映射匹配的默认策略已从AntPathMatcher更改为PathPatternParser,需要手动指定为ant-path-matcher
  102. pathmatch:
  103. matching-strategy: ant_path_matcher
  104. resource:
  105. static-locations: classpath:/static/,classpath:/public/
  106. autoconfigure:
  107. exclude:
  108. - com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
  109. - org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration
  110. datasource:
  111. druid:
  112. stat-view-servlet:
  113. enabled: true
  114. loginUsername: admin
  115. loginPassword: 123456
  116. allow:
  117. web-stat-filter:
  118. enabled: true
  119. dynamic:
  120. druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置)
  121. # 连接池的配置信息
  122. # 初始化大小,最小,最大
  123. initial-size: 5
  124. min-idle: 5
  125. maxActive: 1000
  126. # 配置获取连接等待超时的时间
  127. maxWait: 60000
  128. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  129. timeBetweenEvictionRunsMillis: 60000
  130. # 配置一个连接在池中最小生存的时间,单位是毫秒
  131. minEvictableIdleTimeMillis: 300000
  132. validationQuery: SELECT 1
  133. testWhileIdle: true
  134. testOnBorrow: false
  135. testOnReturn: false
  136. # 打开PSCache,并且指定每个连接上PSCache的大小
  137. poolPreparedStatements: true
  138. maxPoolPreparedStatementPerConnectionSize: 20
  139. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  140. filters: stat,wall,slf4j
  141. # 允许SELECT语句的WHERE子句是一个永真条件
  142. wall:
  143. selectWhereAlwayTrueCheck: false
  144. # 打开mergeSql功能;慢SQL记录
  145. stat:
  146. merge-sql: false
  147. slow-sql-millis: 5000
  148. datasource:
  149. master:
  150. # url: jdbc:mysql://192.168.110.241:3306/national_motion?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  151. # username: root
  152. # password: c7ix0bJv2GvyhbkRw6
  153. url: jdbc:mysql://47.109.67.112:3306/national_motion?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  154. username: root
  155. password: TtbTeGJBnDvH4hMx
  156. # 多数据源配置
  157. #multi-datasource1:
  158. #url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  159. #username: root
  160. #password: root
  161. driver-class-name: com.mysql.cj.jdbc.Driver
  162. #redis 配置
  163. redis:
  164. database: 10
  165. host: 47.109.67.112
  166. port: 6379
  167. password: RUw3C4tAF0aE4PVC
  168. redisson:
  169. file: classpath:redisson.yml
  170. #mybatis plus 设置
  171. mybatis-plus:
  172. mapper-locations: classpath*:org/jeecg/**/xml/*Mapper.xml
  173. global-config:
  174. # 关闭MP3.0自带的banner
  175. banner: false
  176. db-config:
  177. #主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)";
  178. id-type: ASSIGN_ID
  179. # 默认数据库表下划线命名
  180. table-underline: true
  181. logic-delete-field: delFlag # 逻辑删除字段名
  182. logic-delete-value: 1 # 已删除值
  183. logic-not-delete-value: 0 # 未删除值
  184. configuration:
  185. # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
  186. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  187. # 返回类型为Map,显示null对应的字段
  188. call-setters-on-nulls: true
  189. #jeecg专用配置
  190. minidao:
  191. base-package: org.jeecg.modules.jmreport.*,org.jeecg.modules.drag.*
  192. jeecg:
  193. # AI集成
  194. ai-chat:
  195. enabled: true
  196. model: deepseek-chat
  197. apiKey: ??
  198. apiHost: https://api.deepseek.com/v1
  199. timeout: 60
  200. # AIRag向量库
  201. ai-rag:
  202. embed-store:
  203. host: 127.0.0.1
  204. port: 5432
  205. database: postgres
  206. user: postgres
  207. password: postgres
  208. table: embeddings
  209. # 平台上线安全配置
  210. firewall:
  211. # 数据源安全 (开启后,Online报表和图表的数据源为必填)
  212. dataSourceSafe: false
  213. # 低代码模式(dev:开发模式,prod:发布模式——关闭所有在线开发配置能力)
  214. lowCodeMode: dev
  215. # 签名密钥串(前后端要一致,正式发布请自行修改)
  216. signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a
  217. #签名拦截接口
  218. signUrls: /sys/dict/getDictItems/*,/sys/dict/loadDict/*,/sys/dict/loadDictOrderByValue/*,/sys/dict/loadDictItem/*,/sys/dict/loadTreeData,/sys/api/queryTableDictItemsByCode,/sys/api/queryFilterTableDictInfo,/sys/api/queryTableDictByKeys,/sys/api/translateDictFromTable,/sys/api/translateDictFromTableByKeys,/sys/sendChangePwdSms,/sys/user/sendChangePhoneSms,/sys/sms,/desform/api/sendVerifyCode
  219. # 本地:local、Minio:minio、阿里云:alioss
  220. uploadType: alioss
  221. # 前端访问地址
  222. domainUrl:
  223. pc: http://localhost:3100
  224. app: http://localhost:8051
  225. path:
  226. #文件上传根目录 设置
  227. upload: /opt/upFiles
  228. #webapp文件路径
  229. webapp: /opt/webapp
  230. shiro:
  231. excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/bigscreen/category/**,/bigscreen/visual/**,/bigscreen/map/**,/jmreport/bigscreen2/**
  232. #阿里云oss存储和大鱼短信秘钥配置
  233. oss:
  234. accessKey: LTAI5tJscqbev7wSugGCrEtt
  235. secretKey: xJkoJR1ILpXNSF2ERnxNq71UZTQNcB
  236. endpoint: oss-cn-beijing.aliyuncs.com
  237. bucketName: national-motion
  238. # 短信模板
  239. sms-template:
  240. # 签名
  241. signature:
  242. # 模板code
  243. templateCode:
  244. # 登录短信、忘记密码模板编码
  245. SMS_175435174:
  246. # 修改密码短信模板编码
  247. SMS_465391221:
  248. # 注册账号短信模板编码
  249. SMS_175430166:
  250. # 在线预览文件服务器地址配置
  251. file-view-domain: http://fileview.jeecg.com
  252. # minio文件上传
  253. minio:
  254. minio_url: http://minio.jeecg.com
  255. minio_name: ??
  256. minio_pass: ??
  257. bucketName: otatest
  258. #大屏报表参数设置
  259. jmreport:
  260. #多租户模式,默认值为空(created:按照创建人隔离、tenant:按照租户隔离) (v1.6.2+ 新增)
  261. saasMode:
  262. # 平台上线安全配置(v1.6.2+ 新增)
  263. firewall:
  264. # 数据源安全 (开启后,不允许使用平台数据源、SQL解析加签并且不允许查询数据库)
  265. dataSourceSafe: false
  266. # 低代码开发模式(dev:开发模式,prod:发布模式—关闭在线报表设计功能,分配角色admin、lowdeveloper可以放开限制)
  267. lowCodeMode: dev
  268. #xxl-job配置
  269. xxljob:
  270. enabled: false
  271. adminAddresses: http://127.0.0.1:9080/xxl-job-admin
  272. appname: ${spring.application.name}
  273. accessToken: ''
  274. address: 127.0.0.1:30007
  275. ip: 127.0.0.1
  276. port: 30007
  277. logPath: logs/jeecg/job/jobhandler/
  278. logRetentionDays: 30
  279. #分布式锁配置
  280. # redisson:
  281. # address: 127.0.0.1:6379
  282. # password:
  283. # type: STANDALONE
  284. # enabled: true
  285. # 百度开放API配置
  286. baidu-api:
  287. app-id: ??
  288. api-key: ??
  289. secret-key: ??
  290. #cas单点登录
  291. cas:
  292. prefixUrl: http://cas.example.org:8443/cas
  293. #Mybatis输出sql日志
  294. logging:
  295. level:
  296. org.flywaydb: debug
  297. org.jeecg.modules.system.mapper: info
  298. #swagger
  299. knife4j:
  300. #开启增强配置
  301. enable: true
  302. #开启生产环境屏蔽
  303. production: false
  304. basic:
  305. enable: false
  306. username: jeecg
  307. password: jeecg1314
  308. #第三方登录
  309. justauth:
  310. enabled: true
  311. type:
  312. GITHUB:
  313. client-id: ??
  314. client-secret: ??
  315. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/github/callback
  316. WECHAT_ENTERPRISE:
  317. client-id: ??
  318. client-secret: ??
  319. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_enterprise/callback
  320. agent-id: ??
  321. DINGTALK:
  322. client-id: ??
  323. client-secret: ??
  324. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/dingtalk/callback
  325. WECHAT_OPEN:
  326. client-id: ??
  327. client-secret: ??
  328. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_open/callback
  329. cache:
  330. type: default
  331. prefix: 'demo::'
  332. timeout: 1h
  333. # 微信相关
  334. wx:
  335. # 微信小程序
  336. miniapp:
  337. configs:
  338. - appid: wx6260718c6fd46efb
  339. secret: 353c9d6d84347de7af9a7788a00a725e
  340. token: #微信小程序消息服务器配置的token
  341. aesKey: #微信小程序消息服务器配置的EncodingAESKey
  342. msgDataFormat: JSON
  343. # 微信支付配置
  344. pay:
  345. #服务商微信支付商户号
  346. mchId: 1649629687
  347. #证书
  348. keyPath: classpath:cert/apiclient_cert.p12
  349. #服务商微信公众号或者小程序等的appid
  350. appId: wx43b5b906cc30ed0b
  351. #支付回调通知地址
  352. notifyUrl:
  353. #服务商key的密钥
  354. mchKey:
  355. #特约商户微信公众号或者小程序等的appid
  356. subAppId:
  357. #apiV3秘钥
  358. apiV3Key: 4b64e17419689527b256f07cdf6bd60c
  359. #证书号
  360. certSerialNo: 5EB65CC0F912EA2ADD3363EA3DA0230DF6DA90BC
  361. #apiclient_key.pem证书文件的绝对路径或者以classpath:开头的类路径
  362. privateKeyPath: classpath:cert/apiclient_key.pem
  363. #apiclient_cert.pem证书文件的绝对路径或者以classpath:开头的类路径
  364. privateCertPath: classpath:cert/apiclient_cert.pem
  365. baidu:
  366. map:
  367. keys:
  368. - ak: muOeefnWVcMymKORaYmGVNEx9ZtCsOoS
  369. sk: ZDoHSoYoTvynHB6Gw3SxVQ7KpgcoLNJs
  370. # 微信小程序配置
  371. wechat:
  372. miniprogram:
  373. appid: wx6260718c6fd46efb
  374. appsecret: 353c9d6d84347de7af9a7788a00a725e
  375. token:
  376. cache:
  377. enabled: true
  378. timeout: 7000 # 单位秒(2小时=7200秒,提前200秒刷新)
  379. # HTTP连接池配置
  380. http:
  381. pool:
  382. max:
  383. total: 200
  384. default:
  385. max:
  386. per_route: 50
  387. validate:
  388. after_inactivity: 30000