合同小程序后台管理系统后端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

341 lines
11 KiB

3 months ago
3 months ago
3 months ago
  1. server:
  2. port: 8080
  3. tomcat:
  4. max-swallow-size: -1
  5. error:
  6. include-exception: true
  7. include-stacktrace: ALWAYS
  8. include-message: ALWAYS
  9. servlet:
  10. context-path: /contract
  11. compression:
  12. enabled: true
  13. min-response-size: 1024
  14. mime-types: application/javascript,application/json,application/xml,text/html,text/xml,text/plain,text/css,image/*
  15. management:
  16. endpoints:
  17. web:
  18. exposure:
  19. include: metrics,jeecghttptrace
  20. spring:
  21. # flyway配置
  22. flyway:
  23. # 是否启用flyway
  24. enabled: false
  25. # 编码格式,默认UTF-8
  26. encoding: UTF-8
  27. # 迁移sql脚本文件存放路径,官方默认db/migration
  28. locations: classpath:flyway/sql/mysql
  29. # 迁移sql脚本文件名称的前缀,默认V
  30. sql-migration-prefix: V
  31. # 迁移sql脚本文件名称的分隔符,默认2个下划线__
  32. sql-migration-separator: __
  33. # 避免带${}sql执行失败
  34. placeholder-prefix: '#('
  35. placeholder-suffix: )
  36. # 迁移sql脚本文件名称的后缀
  37. sql-migration-suffixes: .sql
  38. # 迁移时是否进行校验,默认true
  39. validate-on-migrate: true
  40. # 当迁移发现数据库非空且存在没有元数据的表时,自动执行基准迁移,新建schema_version表
  41. baseline-on-migrate: true
  42. # 是否关闭要清除已有库下的表功能,生产环境必须为true,否则会删库,非常重要!!!
  43. clean-disabled: true
  44. servlet:
  45. multipart:
  46. max-file-size: 10MB
  47. max-request-size: 10MB
  48. mail:
  49. # 定时任务发送邮件
  50. timeJobSend: false
  51. host: smtp.163.com
  52. username: jeecgos@163.com
  53. password: ??
  54. properties:
  55. mail:
  56. smtp:
  57. auth: true
  58. starttls:
  59. enable: true
  60. required: true
  61. ## quartz定时任务,采用数据库方式
  62. quartz:
  63. job-store-type: jdbc
  64. initialize-schema: embedded
  65. #定时任务开关,true-开 false-关
  66. auto-startup: true
  67. #延迟1秒启动定时任务
  68. startup-delay: 1s
  69. #启动时更新己存在的Job
  70. overwrite-existing-jobs: true
  71. properties:
  72. org:
  73. quartz:
  74. scheduler:
  75. instanceName: MyScheduler
  76. instanceId: AUTO
  77. jobStore:
  78. class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
  79. driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
  80. tablePrefix: QRTZ_
  81. isClustered: true
  82. misfireThreshold: 12000
  83. clusterCheckinInterval: 15000
  84. threadPool:
  85. class: org.quartz.simpl.SimpleThreadPool
  86. threadCount: 10
  87. threadPriority: 5
  88. threadsInheritContextClassLoaderOfInitializingThread: true
  89. #json 时间戳统一转换
  90. jackson:
  91. date-format: yyyy-MM-dd HH:mm:ss
  92. time-zone: GMT+8
  93. jpa:
  94. open-in-view: false
  95. aop:
  96. proxy-target-class: true
  97. #配置freemarker
  98. freemarker:
  99. # 设置模板后缀名
  100. suffix: .ftl
  101. # 设置文档类型
  102. content-type: text/html
  103. # 设置页面编码格式
  104. charset: UTF-8
  105. # 设置页面缓存
  106. cache: false
  107. prefer-file-system-access: false
  108. # 设置ftl文件路径
  109. template-loader-path:
  110. - classpath:/templates
  111. template_update_delay: 0
  112. # 设置静态文件路径,js,css等
  113. mvc:
  114. static-path-pattern: /**
  115. #Spring Boot 2.6+后映射匹配的默认策略已从AntPathMatcher更改为PathPatternParser,需要手动指定为ant-path-matcher
  116. pathmatch:
  117. matching-strategy: ant_path_matcher
  118. resource:
  119. static-locations: classpath:/static/,classpath:/public/
  120. autoconfigure:
  121. exclude:
  122. - com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
  123. - org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration
  124. datasource:
  125. druid:
  126. stat-view-servlet:
  127. enabled: true
  128. loginUsername: admin
  129. loginPassword: 123456
  130. allow:
  131. web-stat-filter:
  132. enabled: true
  133. dynamic:
  134. druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置)
  135. # 连接池的配置信息
  136. # 初始化大小,最小,最大
  137. initial-size: 5
  138. min-idle: 5
  139. maxActive: 1000
  140. # 配置获取连接等待超时的时间
  141. maxWait: 60000
  142. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  143. timeBetweenEvictionRunsMillis: 60000
  144. # 配置一个连接在池中最小生存的时间,单位是毫秒
  145. minEvictableIdleTimeMillis: 300000
  146. validationQuery: SELECT 1 FROM DUAL
  147. testWhileIdle: true
  148. testOnBorrow: false
  149. testOnReturn: false
  150. # 打开PSCache,并且指定每个连接上PSCache的大小
  151. poolPreparedStatements: true
  152. maxPoolPreparedStatementPerConnectionSize: 20
  153. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  154. filters: stat,wall,slf4j
  155. # 允许SELECT语句的WHERE子句是一个永真条件
  156. wall:
  157. selectWhereAlwayTrueCheck: false
  158. # 打开mergeSql功能;慢SQL记录
  159. stat:
  160. merge-sql: true
  161. slow-sql-millis: 5000
  162. datasource:
  163. master:
  164. url: jdbc:mysql://127.0.0.1:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  165. username: root
  166. password: root
  167. driver-class-name: com.mysql.cj.jdbc.Driver
  168. # 多数据源配置
  169. #multi-datasource1:
  170. #url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  171. #username: root
  172. #password: root
  173. #driver-class-name: com.mysql.cj.jdbc.Driver
  174. #redis 配置
  175. redis:
  176. database: 0
  177. host: 127.0.0.1
  178. port: 6379
  179. password: ''
  180. #mybatis plus 设置
  181. mybatis-plus:
  182. mapper-locations: classpath*:org/jeecg/**/xml/*Mapper.xml
  183. global-config:
  184. # 关闭MP3.0自带的banner
  185. banner: false
  186. db-config:
  187. #主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)";
  188. id-type: ASSIGN_ID
  189. # 默认数据库表下划线命名
  190. table-underline: true
  191. configuration:
  192. # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
  193. #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  194. # 返回类型为Map,显示null对应的字段
  195. call-setters-on-nulls: true
  196. #jeecg专用配置
  197. minidao:
  198. base-package: org.jeecg.modules.jmreport.*,org.jeecg.modules.drag.*
  199. jeecg:
  200. # AI集成
  201. ai-chat:
  202. enabled: true
  203. model: deepseek-chat
  204. apiKey: ??
  205. apiHost: https://api.deepseek.com
  206. timeout: 60
  207. # 平台上线安全配置
  208. firewall:
  209. # 数据源安全 (开启后,Online报表和图表的数据源为必填)
  210. dataSourceSafe: true
  211. # 低代码模式(dev:开发模式,prod:发布模式——关闭所有在线开发配置能力)
  212. lowCodeMode: prod
  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\alioss
  218. uploadType: alioss
  219. # 前端访问地址
  220. domainUrl:
  221. pc: http://localhost:3100
  222. app: http://localhost:8051
  223. path:
  224. #文件上传根目录 设置
  225. upload: /opt/jeecg-boot/upload
  226. #webapp文件路径
  227. webapp: /opt/jeecg-boot/webapp
  228. # 字体路径
  229. fonts: "/opt/fonts/simsun.ttc,0"
  230. shiro:
  231. excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/bigscreen/category/**,/bigscreen/visual/**,/bigscreen/map/**,/jmreport/bigscreen2/**,/api/getUserInfo
  232. #阿里云oss存储和大鱼短信秘钥配置
  233. oss:
  234. accessKey: ??
  235. secretKey: ??
  236. endpoint: oss-cn-beijing.aliyuncs.com
  237. bucketName: jeecgdev
  238. staticDomain: https://static.jeecg.com
  239. # 短信模板
  240. sms-template:
  241. # 签名
  242. signature:
  243. # 模板code
  244. templateCode:
  245. # 登录短信、忘记密码模板编码
  246. SMS_175435174:
  247. # 修改密码短信模板编码
  248. SMS_465391221:
  249. # 注册账号短信模板编码
  250. SMS_175430166:
  251. # ElasticSearch 设置
  252. elasticsearch:
  253. cluster-name: jeecg-ES
  254. cluster-nodes: 127.0.0.1:9200
  255. check-enabled: false
  256. # 在线预览文件服务器地址配置
  257. file-view-domain: http://fileview.jeecg.com
  258. # minio文件上传
  259. minio:
  260. minio_url: http://minio.jeecg.com
  261. minio_name: ??
  262. minio_pass: ??
  263. bucketName: otatest
  264. #大屏报表参数设置
  265. jmreport:
  266. #多租户模式,默认值为空(created:按照创建人隔离、tenant:按照租户隔离) (v1.6.2+ 新增)
  267. saasMode:
  268. # 平台上线安全配置(v1.6.2+ 新增)
  269. firewall:
  270. # 数据源安全 (开启后,不允许使用平台数据源、SQL解析加签并且不允许查询数据库)
  271. dataSourceSafe: true
  272. # 低代码开发模式(dev:开发模式,prod:发布模式—关闭在线报表设计功能,分配角色admin、lowdeveloper可以放开限制)
  273. lowCodeMode: prod
  274. #xxl-job配置
  275. xxljob:
  276. enabled: false
  277. adminAddresses: http://127.0.0.1:9080/xxl-job-admin
  278. appname: ${spring.application.name}
  279. accessToken: ''
  280. address: 127.0.0.1:30007
  281. ip: 127.0.0.1
  282. port: 30007
  283. logPath: logs/jeecg/job/jobhandler/
  284. logRetentionDays: 30
  285. #分布式锁配置
  286. redisson:
  287. address: 127.0.0.1:6379
  288. password:
  289. type: STANDALONE
  290. enabled: true
  291. # 百度开放API配置
  292. baidu-api:
  293. app-id: ??
  294. api-key: ??
  295. secret-key: ??
  296. #cas单点登录
  297. cas:
  298. prefixUrl: http://cas.example.org:8443/cas
  299. #Mybatis输出sql日志
  300. logging:
  301. level:
  302. org.flywaydb: debug
  303. org.jeecg.modules.system.mapper: info
  304. #swagger
  305. knife4j:
  306. #开启增强配置
  307. enable: true
  308. #开启生产环境屏蔽
  309. production: true
  310. basic:
  311. enable: true
  312. username: jeecg
  313. password: jeecg1314
  314. #第三方登录
  315. justauth:
  316. enabled: true
  317. type:
  318. GITHUB:
  319. client-id: ??
  320. client-secret: ??
  321. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/github/callback
  322. WECHAT_ENTERPRISE:
  323. client-id: ??
  324. client-secret: ??
  325. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_enterprise/callback
  326. agent-id: ??
  327. DINGTALK:
  328. client-id: ??
  329. client-secret: ??
  330. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/dingtalk/callback
  331. WECHAT_OPEN:
  332. client-id: ??
  333. client-secret: ??
  334. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_open/callback
  335. cache:
  336. type: default
  337. prefix: 'demo::'
  338. timeout: 1h