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.

292 lines
10 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. server:
  2. port: 7014
  3. servlet:
  4. context-path:
  5. session:
  6. timeout: 43200
  7. storeType: none
  8. tomcat:
  9. max-swallow-size: -1
  10. util:
  11. http:
  12. parser:
  13. HttpParser: requestTargetAllow=|{}[]
  14. error:
  15. include-exception: true
  16. include-stacktrace: ALWAYS
  17. include-message: ALWAYS
  18. compression:
  19. enabled: true
  20. min-response-size: 1024
  21. mime-types: application/javascript,application/json,application/xml,text/html,text/xml,text/plain,text/css,image/*
  22. management:
  23. endpoints:
  24. web:
  25. exposure:
  26. include: metrics,httptrace
  27. spring:
  28. cloud:
  29. consul:
  30. host: 127.0.0.1
  31. port: 8500
  32. inetutils:
  33. preferredNetworks[0]: ^10\.
  34. preferredNetworks[1]: ^172\.
  35. discovery:
  36. prefer-ip-address: true
  37. healthCheckInterval: 15s
  38. servlet:
  39. multipart:
  40. max-file-size: 10MB
  41. max-request-size: 10MB
  42. # 安全模块
  43. security:
  44. oauth2:
  45. resourceserver:
  46. jwt:
  47. jwk-set-uri: ${mdp.oauth2.server.uri}/oauth2/jwks
  48. client:
  49. # 下面配置 password 模式
  50. registration:
  51. password-client:
  52. provider: def-oauth-server
  53. client-id: ${spring.application.name}
  54. client-secret: ${spring.application.name}-8888
  55. authorization-grant-type: password
  56. scope: all
  57. # 下面配置 client_credentials 模式
  58. def-client:
  59. provider: def-oauth-server
  60. client-id: ${spring.application.name}
  61. client-secret: ${spring.application.name}-8888
  62. authorization-grant-type: client_credentials
  63. scope: all
  64. # 下面配置authorization_code模式
  65. code-client:
  66. provider: def-oauth-server
  67. client-id: ${spring.application.name}
  68. client-secret: ${spring.application.name}-8888
  69. authorization-grant-type: authorization_code
  70. # 授权码模式下需要配置重定向地址
  71. redirect-uri: ${messages.base-uri}/authorized
  72. scope: all
  73. provider:
  74. def-oauth-server:
  75. # 授权码方式获取code
  76. authorization-uri: ${mdp.oauth2.server.uri}/oauth2/authorize
  77. # 获取token接口
  78. token-uri: ${mdp.oauth2.server.uri}/oauth2/token
  79. mail:
  80. host: smtp.mxhichina.com
  81. port: 25
  82. username: kf@maimeng.com
  83. password: MaiMeng*123
  84. default-encoding: UTF-8
  85. properties:
  86. mail:
  87. smtp:
  88. auth: true
  89. starttls:
  90. enable: true
  91. required: true
  92. socketFactoryClass: javax.net.ssl.SSLSocketFactory
  93. debug: true
  94. jackson:
  95. mapper:
  96. default-view-inclusion: false
  97. date-format: yyyy-MM-dd HH:mm:ss
  98. time-zone: GMT+8
  99. serialization:
  100. indent_output: true
  101. fail_on_empty_beans: false
  102. deserialization:
  103. fail_on_unknown_properties: false
  104. parser:
  105. allow_unquoted_control_chars: true
  106. allow_single_quotes: true
  107. mvc:
  108. date-format: yyyy-MM-dd HH:mm:ss
  109. ## quartz定时任务,采用数据库方式
  110. quartz:
  111. job-store-type: jdbc
  112. initialize-schema: embedded
  113. #定时任务启动开关,true-开 false-关
  114. auto-startup: false
  115. #启动时更新己存在的Job
  116. overwrite-existing-jobs: false
  117. properties:
  118. org:
  119. quartz:
  120. scheduler:
  121. instanceName: MyScheduler
  122. instanceId: AUTO
  123. jobStore:
  124. class: org.quartz.impl.jdbcjobstore.JobStoreTX
  125. driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
  126. tablePrefix: QRTZ_
  127. isClustered: true
  128. misfireThreshold: 60000
  129. clusterCheckinInterval: 10000
  130. threadPool:
  131. class: org.quartz.simpl.SimpleThreadPool
  132. threadCount: 10
  133. threadPriority: 5
  134. threadsInheritContextClassLoaderOfInitializingThread: true
  135. jpa:
  136. open-in-view: false
  137. activiti:
  138. check-process-definitions: false
  139. #启用作业执行器
  140. async-executor-activate: false
  141. #启用异步执行器
  142. job-executor-activate: false
  143. aop:
  144. proxy-target-class: true
  145. #配置freemarker
  146. freemarker:
  147. # 设置模板后缀名
  148. suffix: .ftl
  149. # 设置文档类型
  150. content-type: text/html
  151. # 设置页面编码格式
  152. charset: UTF-8
  153. # 设置页面缓存
  154. cache: false
  155. prefer-file-system-access: false
  156. # 设置ftl文件路径
  157. template-loader-path:
  158. - classpath:/templates
  159. resource:
  160. static-locations: classpath:/static/,classpath:/public/
  161. autoconfigure:
  162. exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
  163. datasource:
  164. primary: master
  165. strict: false,
  166. druid:
  167. stat-view-servlet:
  168. enabled: true
  169. loginUsername: root
  170. loginPassword: 123456
  171. allow:
  172. web-stat-filter:
  173. enabled: true
  174. dynamic:
  175. druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置)
  176. # 连接池的配置信息
  177. # 初始化大小,最小,最大
  178. initial-size: 5
  179. min-idle: 5
  180. maxActive: 20
  181. # 配置获取连接等待超时的时间
  182. maxWait: 60000
  183. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  184. timeBetweenEvictionRunsMillis: 60000
  185. # 配置一个连接在池中最小生存的时间,单位是毫秒
  186. minEvictableIdleTimeMillis: 300000
  187. validationQuery: SELECT 1
  188. testWhileIdle: true
  189. testOnBorrow: false
  190. testOnReturn: false
  191. # 打开PSCache,并且指定每个连接上PSCache的大小
  192. poolPreparedStatements: true
  193. maxPoolPreparedStatementPerConnectionSize: 20
  194. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  195. filters: stat,wall,slf4j
  196. # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
  197. connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
  198. datasource:
  199. master:
  200. # url: jdbc:mysql://124.223.85.6:31605/erp?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai&allowMultiQueries=true
  201. #username: zchcgl
  202. #password: zchcgl123!@#
  203. #driver-class-name: com.mysql.cj.jdbc.Driver
  204. url: jdbc:mysql://127.0.0.1:3306/lcode?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowMultiQueries=true&serverTimezone=CTT
  205. username: root
  206. password: MaiMeng*123
  207. driver-class-name: com.mysql.cj.jdbc.Driver
  208. # 多数据源配置
  209. #multi-datasource1:
  210. #url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  211. #username: root
  212. #password: root
  213. #driver-class-name: com.mysql.cj.jdbc.Driver
  214. mem-ds:
  215. url: jdbc:mysql://127.0.0.1:3306/lcode?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowMultiQueries=true&serverTimezone=CTT
  216. username: root
  217. password: MaiMeng*123
  218. driver-class-name: com.mysql.cj.jdbc.Driver
  219. mall-ds:
  220. url: jdbc:mysql://127.0.0.1:3306/lcode?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowMultiQueries=true&serverTimezone=CTT
  221. username: root
  222. password: MaiMeng*123
  223. driver-class-name: com.mysql.cj.jdbc.Driver
  224. arc-ds:
  225. url: jdbc:mysql://127.0.0.1:3306/lcode?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowMultiQueries=true&serverTimezone=CTT
  226. username: root
  227. password: MaiMeng*123
  228. driver-class-name: com.mysql.cj.jdbc.Driver
  229. #redis 配置
  230. redis:
  231. database: 0
  232. host: 127.0.0.1
  233. timeout: 300s
  234. lettuce:
  235. pool:
  236. max-active: 8 #最大连接数据库连接数,设 -1 为没有限制
  237. max-idle: 20 #最大等待连接中的数量,设 0 为没有限制
  238. max-wait: 10000 #最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示无限制。
  239. min-idle: 8 #最小等待连接中的数量,设 0 为没有限制
  240. shutdown-timeout: 100ms
  241. password: MaiMeng*123
  242. port: 6379
  243. #mybatis plus 设置
  244. mybatis-plus:
  245. mapper-locations: classpath*:/**/**Mapper.xml
  246. global-config:
  247. # 关闭MP3.0自带的banner
  248. banner: false
  249. db-config:
  250. #主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)";
  251. id-type: ASSIGN_ID
  252. # 默认数据库表下划线命名
  253. table-underline: true
  254. logic-delete-value: 1
  255. logic-not-delete-value: 0
  256. configuration:
  257. # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
  258. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  259. # 返回类型为Map,显示null对应的字段
  260. call-setters-on-nulls: true
  261. #Mybatis输出sql日志
  262. logging:
  263. level:
  264. org.jeecg.modules.system.mapper : info
  265. # mdp平台授权验证服务器访问地址 cloud环境下换成 http://gate,本地调试如果不起验证服务器,可改为 https://www.qingqinkj.com/api/m1/oauth2/oauth2
  266. # 客户端必须在数据库表adm.oauth_client_details中配置,否则无法访问
  267. mdp:
  268. api-gate: http://127.0.0.1:7014
  269. platform-branch-id: platform-branch-001
  270. #配置图片文件上传下载的相关参数
  271. arc:
  272. image-upload-root-path: D:/arcfile/images
  273. image-download-base-uri: https://127.0.1:7014/
  274. file-upload-root-path: D:/arcfile/files
  275. file-download-base-uri: https://127.0.1:7014/
  276. # 站点语言类型cn\en等
  277. site-type: cn
  278. jwt:
  279. # 如果不对接oauth2授权中心,jwt将有本地系统自行分发自行验证 设为false
  280. connect-oauth2-server: false
  281. oauth2:
  282. server:
  283. uri: http://oauth2server