b7f9b45797b2e98bc18c8171f5c826081afabe66.svn-base 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  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: /jeecg-boot
  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,httptrace
  20. enabled-by-default: false
  21. spring:
  22. servlet:
  23. multipart:
  24. max-file-size: 10MB
  25. max-request-size: 10MB
  26. mail:
  27. host: smtp.163.com
  28. username: jeecgos@163.com
  29. password: ??
  30. properties:
  31. mail:
  32. smtp:
  33. auth: true
  34. starttls:
  35. enable: true
  36. required: true
  37. ## quartz定时任务,采用数据库方式
  38. quartz:
  39. job-store-type: jdbc
  40. initialize-schema: embedded
  41. #定时任务启动开关,true-开 false-关
  42. auto-startup: true
  43. #启动时更新己存在的Job
  44. overwrite-existing-jobs: true
  45. properties:
  46. org:
  47. quartz:
  48. scheduler:
  49. instanceName: MyScheduler
  50. instanceId: AUTO
  51. jobStore:
  52. class: org.quartz.impl.jdbcjobstore.JobStoreTX
  53. driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
  54. tablePrefix: QRTZ_
  55. isClustered: true
  56. misfireThreshold: 60000
  57. clusterCheckinInterval: 10000
  58. threadPool:
  59. class: org.quartz.simpl.SimpleThreadPool
  60. threadCount: 10
  61. threadPriority: 5
  62. threadsInheritContextClassLoaderOfInitializingThread: true
  63. #json 时间戳统一转换
  64. jackson:
  65. date-format: yyyy-MM-dd HH:mm:ss
  66. time-zone: GMT+8
  67. jpa:
  68. open-in-view: false
  69. activiti:
  70. check-process-definitions: false
  71. #启用作业执行器
  72. async-executor-activate: false
  73. #启用异步执行器
  74. job-executor-activate: false
  75. aop:
  76. proxy-target-class: true
  77. #配置freemarker
  78. freemarker:
  79. # 设置模板后缀名
  80. suffix: .ftl
  81. # 设置文档类型
  82. content-type: text/html
  83. # 设置页面编码格式
  84. charset: UTF-8
  85. # 设置页面缓存
  86. cache: false
  87. prefer-file-system-access: false
  88. # 设置ftl文件路径
  89. template-loader-path:
  90. - classpath:/templates
  91. # 设置静态文件路径,js,css等
  92. mvc:
  93. static-path-pattern: /**
  94. resource:
  95. static-locations: classpath:/static/,classpath:/public/
  96. autoconfigure:
  97. exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
  98. datasource:
  99. druid:
  100. stat-view-servlet:
  101. enabled: false
  102. loginUsername: admin
  103. loginPassword: Admin@123
  104. allow:
  105. web-stat-filter:
  106. enabled: true
  107. dynamic:
  108. druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置)
  109. # 连接池的配置信息
  110. # 初始化大小,最小,最大
  111. initial-size: 5
  112. min-idle: 5
  113. maxActive: 1000
  114. # 配置获取连接等待超时的时间
  115. maxWait: 60000
  116. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  117. timeBetweenEvictionRunsMillis: 60000
  118. # 配置一个连接在池中最小生存的时间,单位是毫秒
  119. minEvictableIdleTimeMillis: 300000
  120. validationQuery: SELECT 1 FROM DUAL
  121. testWhileIdle: true
  122. testOnBorrow: false
  123. testOnReturn: false
  124. # 打开PSCache,并且指定每个连接上PSCache的大小
  125. poolPreparedStatements: true
  126. maxPoolPreparedStatementPerConnectionSize: 20
  127. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  128. filters: stat,wall,slf4j
  129. # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
  130. connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
  131. datasource:
  132. master:
  133. #url: jdbc:mysql://127.0.0.1:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  134. #username: root
  135. #password: root
  136. #driver-class-name: com.mysql.cj.jdbc.Driver
  137. url: jdbc:postgresql://localhost:5432/postgres
  138. username: postgres
  139. password: 123456
  140. driver-class-name: org.postgresql.Driver
  141. # 多数据源配置
  142. #multi-datasource1:
  143. #url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  144. #username: root
  145. #password: root
  146. #driver-class-name: com.mysql.cj.jdbc.Driver
  147. #redis 配置
  148. redis:
  149. database: 0
  150. host: 127.0.0.1
  151. lettuce:
  152. pool:
  153. max-active: 8 #最大连接数据库连接数,设 -1 为没有限制
  154. max-idle: 8 #最大等待连接中的数量,设 0 为没有限制
  155. max-wait: -1ms #最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示无限制。
  156. min-idle: 0 #最小等待连接中的数量,设 0 为没有限制
  157. shutdown-timeout: 100ms
  158. password: ''
  159. port: 6379
  160. #mybatis plus 设置
  161. mybatis-plus:
  162. mapper-locations: classpath*:org/jeecg/modules/**/xml/*Mapper.xml
  163. global-config:
  164. # 关闭MP3.0自带的banner
  165. banner: false
  166. db-config:
  167. #主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)";
  168. id-type: ASSIGN_ID
  169. # 默认数据库表下划线命名
  170. table-underline: true
  171. logic-delete-field: del_flag # 全局逻辑删除的实体字段名(since 3.3.0,配置后可以忽略不配置步骤2)
  172. logic-delete-value: 1 # 逻辑已删除值(默认为 1)
  173. logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
  174. configuration:
  175. # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
  176. #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  177. # 返回类型为Map,显示null对应的字段
  178. call-setters-on-nulls: true
  179. #jeecg专用配置
  180. minidao :
  181. base-package: org.jeecg.modules.jmreport.*
  182. jeecg :
  183. # 签名密钥串(前后端要一致,正式发布请自行修改)
  184. signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a
  185. # 本地:local\Minio:minio\阿里云:alioss
  186. uploadType: local
  187. path :
  188. #文件上传根目录 设置
  189. upload: /opt/jeecg-boot/u pload
  190. #webapp文件路径
  191. webapp: /opt/jeecg-boot/webapp
  192. shiro:
  193. excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**,/api/getUserInfo
  194. #阿里云oss存储和大鱼短信秘钥配置
  195. oss:
  196. accessKey: ??
  197. secretKey: ??
  198. endpoint: oss-cn-beijing.aliyuncs.com
  199. bucketName: jeecgdev
  200. staticDomain: https://static.jeecg.com
  201. # ElasticSearch 设置
  202. elasticsearch:
  203. cluster-name: jeecg-ES
  204. cluster-nodes: 81.70.47.128:9200
  205. check-enabled: true
  206. # 表单设计器配置
  207. desform:
  208. # 主题颜色(仅支持 16进制颜色代码)
  209. theme-color: "#1890ff"
  210. # 文件、图片上传方式,可选项:qiniu(七牛云)、system(跟随系统配置)
  211. upload-type: system
  212. map:
  213. # 配置百度地图的AK,申请地址:https://lbs.baidu.com/apiconsole/key?application=key#/home
  214. baidu: ??
  215. # 在线预览文件服务器地址配置
  216. file-view-domain: http://fileview.jeecg.com
  217. # minio文件上传
  218. minio:
  219. minio_url: http://minio.jeecg.com
  220. minio_name: ??
  221. minio_pass: ??
  222. bucketName: otatest
  223. #大屏报表参数设置
  224. jmreport:
  225. mode: prod
  226. #数据字典是否进行saas数据隔离,自己看自己的字典
  227. saas: false
  228. #是否需要校验token
  229. is_verify_token: true
  230. #必须校验方法
  231. verify_methods: remove,delete,save,add,update
  232. #Wps在线文档
  233. wps:
  234. domain: https://wwo.wps.cn/office/
  235. appid: ??
  236. appsecret: ??
  237. #xxl-job配置
  238. xxljob:
  239. enabled: false
  240. adminAddresses: http://127.0.0.1:9080/xxl-job-admin
  241. appname: ${spring.application.name}
  242. accessToken: ''
  243. address: 127.0.0.1:30007
  244. ip: 127.0.0.1
  245. port: 30007
  246. logPath: logs/jeecg/job/jobhandler/
  247. logRetentionDays: 30
  248. route:
  249. config:
  250. data-id: jeecg-gateway-router
  251. group: DEFAULT_GROUP
  252. #自定义路由配置 yml nacos database
  253. data-type: database
  254. #分布式锁配置
  255. redisson:
  256. address: 127.0.0.1:6379
  257. password:
  258. type: STANDALONE
  259. enabled: true
  260. #cas单点登录
  261. cas:
  262. prefixUrl: http://cas.example.org:8443/cas
  263. #Mybatis输出sql日志
  264. logging:
  265. level:
  266. org.jeecg.modules.system.mapper : info
  267. #swagger
  268. knife4j:
  269. #开启增强配置
  270. enable: true
  271. #开启生产环境屏蔽
  272. production: true
  273. basic:
  274. enable: true
  275. username: jeecg
  276. password: jeecg1314
  277. #第三方登录
  278. justauth:
  279. enabled: true
  280. type:
  281. GITHUB:
  282. client-id: ??
  283. client-secret: ??
  284. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/github/callback
  285. WECHAT_ENTERPRISE:
  286. client-id: ??
  287. client-secret: ??
  288. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_enterprise/callback
  289. agent-id: ??
  290. DINGTALK:
  291. client-id: ??
  292. client-secret: ??
  293. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/dingtalk/callback
  294. WECHAT_OPEN:
  295. client-id: ??
  296. client-secret: ??
  297. redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_open/callback
  298. cache:
  299. type: default
  300. prefix: 'demo::'
  301. timeout: 1h
  302. #第三方APP对接
  303. third-app:
  304. enabled: false
  305. type:
  306. #企业微信
  307. WECHAT_ENTERPRISE:
  308. enabled: false
  309. #CORP_ID
  310. client-id: ??
  311. #SECRET
  312. client-secret: ??
  313. #自建应用id
  314. agent-id: ??
  315. #自建应用秘钥(新版企微需要配置)
  316. # agent-app-secret: ??
  317. #钉钉
  318. DINGTALK:
  319. enabled: false
  320. # appKey
  321. client-id: ??
  322. # appSecret
  323. client-secret: ??
  324. agent-id: ??