application-dev.yml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  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: 172.24.50.52
  166. port: 6379
  167. password: RUw3C4tAF0aE4PVC
  168. #mybatis plus 设置
  169. mybatis-plus:
  170. mapper-locations: classpath*:org/jeecg/**/xml/*Mapper.xml
  171. global-config:
  172. # 关闭MP3.0自带的banner
  173. banner: false
  174. db-config:
  175. #主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)";
  176. id-type: ASSIGN_ID
  177. # 默认数据库表下划线命名
  178. table-underline: true
  179. logic-delete-field: delFlag # 逻辑删除字段名
  180. logic-delete-value: 1 # 已删除值
  181. logic-not-delete-value: 0 # 未删除值
  182. configuration:
  183. # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
  184. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  185. # 返回类型为Map,显示null对应的字段
  186. call-setters-on-nulls: true
  187. #jeecg专用配置
  188. minidao:
  189. base-package: org.jeecg.modules.jmreport.*,org.jeecg.modules.drag.*
  190. jeecg:
  191. # AI集成
  192. ai-chat:
  193. enabled: true
  194. model: deepseek-chat
  195. apiKey: ??
  196. apiHost: https://api.deepseek.com/v1
  197. timeout: 60
  198. # AIRag向量库
  199. ai-rag:
  200. embed-store:
  201. host: 127.0.0.1
  202. port: 5432
  203. database: postgres
  204. user: postgres
  205. password: postgres
  206. table: embeddings
  207. # 平台上线安全配置
  208. firewall:
  209. # 数据源安全 (开启后,Online报表和图表的数据源为必填)
  210. dataSourceSafe: false
  211. # 低代码模式(dev:开发模式,prod:发布模式——关闭所有在线开发配置能力)
  212. lowCodeMode: dev
  213. # 签名密钥串(前后端要一致,正式发布请自行修改)
  214. signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a
  215. #签名拦截接口
  216. 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
  217. # 本地:local、Minio:minio、阿里云:alioss
  218. uploadType: local
  219. # 前端访问地址
  220. domainUrl:
  221. pc: http://localhost:3100
  222. app: http://localhost:8051
  223. path:
  224. #文件上传根目录 设置
  225. upload: /opt/upFiles
  226. #webapp文件路径
  227. webapp: /opt/webapp
  228. shiro:
  229. excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/bigscreen/category/**,/bigscreen/visual/**,/bigscreen/map/**,/jmreport/bigscreen2/**
  230. #阿里云oss存储和大鱼短信秘钥配置
  231. oss:
  232. accessKey: ??
  233. secretKey: ??
  234. endpoint: oss-cn-beijing.aliyuncs.com
  235. bucketName: jeecgdev
  236. # 短信模板
  237. sms-template:
  238. # 签名
  239. signature:
  240. # 模板code
  241. templateCode:
  242. # 登录短信、忘记密码模板编码
  243. SMS_175435174:
  244. # 修改密码短信模板编码
  245. SMS_465391221:
  246. # 注册账号短信模板编码
  247. SMS_175430166:
  248. # 在线预览文件服务器地址配置
  249. file-view-domain: http://fileview.jeecg.com
  250. # minio文件上传
  251. minio:
  252. minio_url: http://minio.jeecg.com
  253. minio_name: ??
  254. minio_pass: ??
  255. bucketName: otatest
  256. #大屏报表参数设置
  257. jmreport:
  258. #多租户模式,默认值为空(created:按照创建人隔离、tenant:按照租户隔离) (v1.6.2+ 新增)
  259. saasMode:
  260. # 平台上线安全配置(v1.6.2+ 新增)
  261. firewall:
  262. # 数据源安全 (开启后,不允许使用平台数据源、SQL解析加签并且不允许查询数据库)
  263. dataSourceSafe: false
  264. # 低代码开发模式(dev:开发模式,prod:发布模式—关闭在线报表设计功能,分配角色admin、lowdeveloper可以放开限制)
  265. lowCodeMode: dev
  266. #xxl-job配置
  267. xxljob:
  268. enabled: false
  269. adminAddresses: http://127.0.0.1:9080/xxl-job-admin
  270. appname: ${spring.application.name}
  271. accessToken: ''
  272. address: 127.0.0.1:30007
  273. ip: 127.0.0.1
  274. port: 30007
  275. logPath: logs/jeecg/job/jobhandler/
  276. logRetentionDays: 30
  277. #分布式锁配置
  278. redisson:
  279. address: 127.0.0.1:6379
  280. password:
  281. type: STANDALONE
  282. enabled: true
  283. # 百度开放API配置
  284. baidu-api:
  285. app-id: ??
  286. api-key: ??
  287. secret-key: ??
  288. #cas单点登录
  289. cas:
  290. prefixUrl: http://cas.example.org:8443/cas
  291. #Mybatis输出sql日志
  292. logging:
  293. level:
  294. org.flywaydb: debug
  295. org.jeecg.modules.system.mapper: info
  296. #swagger
  297. knife4j:
  298. #开启增强配置
  299. enable: true
  300. #开启生产环境屏蔽
  301. production: false
  302. basic:
  303. enable: false
  304. username: jeecg
  305. password: jeecg1314
  306. #第三方登录
  307. justauth:
  308. enabled: true
  309. type:
  310. GITHUB:
  311. client-id: ??
  312. client-secret: ??
  313. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/github/callback
  314. WECHAT_ENTERPRISE:
  315. client-id: ??
  316. client-secret: ??
  317. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_enterprise/callback
  318. agent-id: ??
  319. DINGTALK:
  320. client-id: ??
  321. client-secret: ??
  322. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/dingtalk/callback
  323. WECHAT_OPEN:
  324. client-id: ??
  325. client-secret: ??
  326. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_open/callback
  327. cache:
  328. type: default
  329. prefix: 'demo::'
  330. timeout: 1h
  331. # 微信相关
  332. wx:
  333. # 微信小程序
  334. miniapp:
  335. configs:
  336. - appid: wx62ba790ae7983d34
  337. secret: 8df754e6d36a7f0ac26f108f1607beff
  338. token: #微信小程序消息服务器配置的token
  339. aesKey: #微信小程序消息服务器配置的EncodingAESKey
  340. msgDataFormat: JSON