application.yml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521
  1. spring:
  2. profiles:
  3. active: dev
  4. title: "@@project.name@@"
  5. description: "@@project.description@@"
  6. version: "@@project.version@@"
  7. datasource:
  8. dynamic:
  9. primary: master #设置默认的数据源或者数据源组,默认值即为master
  10. seata: false
  11. datasource:
  12. master:
  13. druid:
  14. # 最小连接数
  15. min-idle: 10
  16. # 最大连接数
  17. max-active: 300
  18. # 如果当前使用Oracle,把这个值设置为100。
  19. max-open-prepared-statements: -1
  20. # druid mysql 验证语句
  21. validation-query: select 1 FROM DUAL
  22. # druid pgsql 验证语句
  23. #validation-query: select 1
  24. # druid oracle 验证语句
  25. #validation-query: select 1 from dual
  26. testWhileIdle: true
  27. # 借用连接时执行validationQuery检测连接是否有效,做了这个配置会降低性能
  28. testOnBorrow: false
  29. # 归还连接时执行validationQuery检测连接是否有效,做了这个配置会降低性能
  30. testOnReturn: false
  31. removeAbandoned: false
  32. http:
  33. encoding:
  34. enabled: true
  35. force: true
  36. charset: UTF-8
  37. messages:
  38. encoding: UTF-8
  39. servlet:
  40. multipart:
  41. maxFileSize: 1024MB
  42. maxRequestSize: 1024MB
  43. enabled: true
  44. freemarker:
  45. template-loader-path: classpath:/templates/ #模板加载路径 按需配置
  46. charset: UTF-8
  47. redis:
  48. timeout: 5000
  49. lettuce:
  50. pool:
  51. max-active: 200
  52. max-idle: 200
  53. min-idle: 5
  54. jms:
  55. pub-sub-domain: true
  56. cache:
  57. enabled: false
  58. activemq:
  59. in-memory: false
  60. pool:
  61. enabled: true
  62. packages:
  63. trust-all: true
  64. trusted: com.hotent.activemq.model,com.hotent.base.jms,java.util,java.lang,com.hotent #信任所有的包
  65. kafka:
  66. bootstrap-servers: 192.168.1.119:9092
  67. rocketmq:
  68. namesrvAddr: 192.168.1.31:9876
  69. messages:
  70. basename: i18n/messages
  71. encoding: UTF-8
  72. # 服务端端口
  73. server:
  74. port: 9506
  75. address: 0.0.0.0
  76. # 链接建立超时时间(单位:毫秒)
  77. connection-timeout: 30000
  78. contextPath: /
  79. tomcat:
  80. uri-encoding: UTF-8
  81. # 最小线程数
  82. min-spare-threads: 8
  83. # 最大线程数 默认值200
  84. max-threads: 300
  85. # 最大链接数 默认值 8192
  86. max-connections: 8192
  87. # 最大等待队列长度
  88. accept-count: 100
  89. compression:
  90. enabled: true
  91. mime-types: "text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json"
  92. min-response-size: 1024
  93. # 是否启用队列,默认的队列名和订阅名
  94. jms:
  95. enable: true
  96. queue:
  97. name: eipQueue_tt
  98. topic:
  99. name: eipTopic_tt
  100. # 指定可跨域的域名
  101. cross:
  102. allowOrigin:
  103. # 配置打印SQL语句
  104. logging:
  105. config: classpath:config/logback-spring.xml
  106. management:
  107. # 忽略ldap的健康检查
  108. health:
  109. LDAP.enabled: false
  110. add-application-context-header: false
  111. endpoints:
  112. web:
  113. exposure:
  114. include: health,info,cert
  115. info:
  116. app:
  117. encoding: "@@project.build.sourceEncoding@@"
  118. java:
  119. source: "@@java.version@@"
  120. target: "@@java.version@@"
  121. banner:
  122. charset: UTF-8
  123. mybatis-plus:
  124. configuration:
  125. call-setters-on-nulls: true
  126. jdbc-type-for-null: 'null'
  127. # 打印执行的SQL语句及返回的数据
  128. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  129. global-config:
  130. db-config:
  131. update-strategy: IGNORED # FieldStrategy
  132. #人大金仓 类转换器
  133. type-handlers-package: com.hotent.base.kingbaseTypeHandler
  134. mybatis:
  135. typeAliasesPackage: com.hotent.base.entity
  136. mapperLocations: classpath*:mapper/*.xml
  137. typeHandlersPackage: com.hotent.base.typehandle
  138. # token生成配置
  139. jwt:
  140. header: Authorization
  141. secret: mySecret
  142. feignSecret: myFeignSecret
  143. # 是否单用户登录(启用时:一个账号在PC和移动端只允许登录一次)
  144. single: false
  145. # 严格校验模式(必须单用户登录时才生效,严格校验模式下:加入token的状态管理)
  146. stricty: false
  147. expiration: 86400 # 单位秒
  148. # 是否开启Basic认证(注意开启该配置项有一定的被侵入风险)
  149. basic: false
  150. # 系统中发送邮件的账号
  151. mail:
  152. host: smtp.qq.com
  153. port: 25
  154. ssl: false
  155. nickName: "eip7管理员"
  156. username: 1192668375@qq.com
  157. password: bpzgyqhznjnnihje
  158. system:
  159. # 默认的附件上传目录,会被系统属性中配置覆盖
  160. attachment:
  161. type: folder
  162. path: /home/eip/attachment
  163. bpm:
  164. engineName: eip7
  165. # flase activiti在启动时,会对比数据库表中保存的版本,如果没有表或者版本不匹配,将抛出异常。(生产环境常用) true activiti会对数据库中所有表进行更新操作。如果表不存在,则自动创建。(开发时常用)
  166. databaseSchemaUpdate: true
  167. # 多租户
  168. saas:
  169. # 是否开启多租户模式,注意:非租户模式和租户模式下数据有差异性,切换后可能导致数据异常
  170. enable: true
  171. # 忽略租户隔离的物理表名
  172. ignoreTables:
  173. - cost_audited_unit
  174. - cost_catalog
  175. - cost_document_wh
  176. - cost_district
  177. - cost_document_template
  178. - cost_document_template_file
  179. - information_schema.columns
  180. - cost_information
  181. - cost_survey_template
  182. - cost_survey_template_headers
  183. - cost_survey_template_items
  184. - cost_survey_template_version
  185. - cost_annual_plan
  186. - cost_project_approval
  187. - cost_annual_plan
  188. - cost_project_approval
  189. - cost_project_scenario
  190. - cost_project_material
  191. - cost_project_survey
  192. - cost_project_document
  193. - cost_project_document_file
  194. - cost_project_memo
  195. - cost_project_deliberate
  196. - cost_project_conclusion
  197. - cost_catalog_information
  198. - cost_catalog_survey
  199. - cost_catalog_unit
  200. - cost_project_proccess
  201. - cost_project_proccess_node
  202. - cost_project_proccess_node_templete
  203. - cost_project_proccess_personnel
  204. - cost_project_proccess_templete
  205. - cost_survey_fd_template
  206. - cost_survey_fd_template_headers
  207. - cost_survey_fd_template_items
  208. - cost_survey_fd_template_version
  209. - cost_verify_template
  210. - cost_verify_template_headers
  211. - cost_verify_template_items
  212. - cost_notice
  213. - cost_project_task
  214. - cost_project_task_log
  215. - cost_project_task_approval
  216. - cost_project_task_document
  217. - cost_project_task_document_data
  218. - cost_project_task_material
  219. - cost_project_task_node
  220. - cost_project_task_proccess
  221. - cost_project_task_evidence
  222. - cost_project_task_adjustment_record
  223. - cost_project_task_draft
  224. - cost_project_task_preliminary_opinion
  225. - cost_project_task_material_detail
  226. - cost_project_task_material_summary
  227. - cost_survey_template_upload
  228. - cost_audit_period_record
  229. - cost_survey_fd_template_upload_data
  230. - cost_project_supervise
  231. - cost_project_supervise_data
  232. # 异步线程池配置
  233. thread:
  234. # 连接池最小线程数(设部署应用的服务器CPU内核数为N,该值设置为:2N+1)
  235. core-pool-size: 150
  236. # 连接池最大线程数(当异步任务超过任务队列容量时,当前线程数会从最小线程数往最大线程数增长。可以设置最大线程数与最大并发数相等,例如:200并发,单服务器部署时,设置最大线程数为200)
  237. max-pool-size: 2000
  238. # 空闲线程存活时间
  239. keep-alive-seconds: 60
  240. # 任务队列容量
  241. queue-capacity: 100
  242. druid:
  243. # 是否显示sql分析页面
  244. stat.enable: false
  245. # druid拦截后不抛出异常
  246. wall.throwException: false
  247. # 附件在线预览
  248. file:
  249. file.dir: /home/eip/conver/
  250. office:
  251. # 是否启用openoffice组件(设置为true也需要在服务器上安装openoffice才能使用)
  252. enable: true
  253. home: /opt/openoffice4
  254. #office启动端口
  255. prot: 9093
  256. simText: txt,html,xml,java,properties,sql
  257. media: mp3,mp4,flv,rmvb,wmv
  258. converted.file.charset: utf-8
  259. # FTP settings
  260. FTP:
  261. FTP.url: 192.168.1.141
  262. FTP.username: lj
  263. FTP.password: 123
  264. FTP.port: 21
  265. # 阿里云OSS settings
  266. aliyun:
  267. oss.endpoint: http://oss-cn-guangzhou.aliyuncs.com
  268. oss.accessKeyId: LTAI4GBPb8Qwz6fdhejwpJqq
  269. oss.accessKeySecret: szsQO6up7wkOsFUXmpZyMKVAL3c4h6
  270. oss.bucketName: hotent
  271. # 单点登录配置
  272. sso:
  273. enable: true
  274. mode: jwt # jwt cas oauth
  275. cas:
  276. url: http://127.0.0.1/cas #CAS服务地址
  277. oauth:
  278. url: http://127.0.0.1 #oauth2服务地址
  279. loginPath: /oauth/authorize
  280. tokenPath: /oauth/token
  281. checkPath: /oauth/check_token
  282. clientId: eip7
  283. secret: flossy
  284. accesstokenKey: access_token #获取oauth账号时的key
  285. checkPathKey: access_token #获取oauth验证token的地址
  286. usernameKey: username #获取用户账号时的key
  287. # 分布式事务
  288. seata:
  289. enabled: false
  290. application-id: ${spring.application.name}
  291. tx-service-group: ${spring.application.name}
  292. enable-auto-data-source-proxy: true
  293. use-jdk-proxy: false
  294. excludes-for-auto-proxying: firstClassNameForExclude,secondClassNameForExclude
  295. client:
  296. rm:
  297. async-commit-buffer-limit: 1000
  298. report-retry-count: 5
  299. table-meta-check-enable: false
  300. report-success-enable: false
  301. saga-branch-register-enable: false
  302. lock:
  303. retry-interval: 10
  304. retry-times: 30
  305. retry-policy-branch-rollback-on-conflict: true
  306. tm:
  307. degrade-check: false
  308. degrade-check-period: 2000
  309. degrade-check-allow-times: 10
  310. commit-retry-count: 5
  311. rollback-retry-count: 5
  312. undo:
  313. data-validation: true
  314. log-serialization: jackson
  315. log-table: undo_log
  316. only-care-update-columns: true
  317. log:
  318. exceptionRate: 100
  319. service:
  320. vgroup-mapping:
  321. eip-portal: seata-server #key: value key 为微服务名称 value为seata服务名称
  322. eip-uc: seata-server
  323. eip-form: seata-server
  324. eip-bpm-model: seata-server
  325. eip-bpm-runtime: seata-server
  326. grouplist:
  327. default: 192.168.1.100:8091
  328. enable-degrade: false
  329. disable-global-transaction: false
  330. transport:
  331. shutdown:
  332. wait: 3
  333. thread-factory:
  334. boss-thread-prefix: NettyBoss
  335. worker-thread-prefix: NettyServerNIOWorker
  336. server-executor-thread-prefix: NettyServerBizHandler
  337. share-boss-worker: false
  338. client-selector-thread-prefix: NettyClientSelector
  339. client-selector-thread-size: 1
  340. client-worker-thread-prefix: NettyClientWorkerThread
  341. worker-thread-size: default
  342. boss-thread-size: 1
  343. type: TCP
  344. server: NIO
  345. heartbeat: true
  346. serialization: seata
  347. compressor: none
  348. enable-client-batch-send-request: true
  349. config:
  350. type: file
  351. consul:
  352. server-addr: 127.0.0.1:8500
  353. apollo:
  354. apollo-meta: http://192.168.1.204:8801
  355. app-id: seata-server
  356. namespace: application
  357. etcd3:
  358. server-addr: http://localhost:2379
  359. nacos:
  360. namespace:
  361. serverAddr: 127.0.0.1:8848
  362. group: SEATA_GROUP
  363. userName: ""
  364. password: ""
  365. zk:
  366. server-addr: 127.0.0.1:2181
  367. session-timeout: 6000
  368. connect-timeout: 2000
  369. username: ""
  370. password: ""
  371. registry:
  372. type: eureka
  373. consul:
  374. server-addr: 127.0.0.1:8500
  375. etcd3:
  376. serverAddr: http://localhost:2379
  377. eureka:
  378. weight: 1
  379. service-url: ${eureka.client.service-url.defaultZone}
  380. nacos:
  381. application: seata-server
  382. server-addr: 192.168.1.100:8848
  383. namespace:
  384. userName: ""
  385. password: ""
  386. redis:
  387. server-addr: 192.168.1.100:6379
  388. db: 0
  389. password:
  390. timeout: 0
  391. sofa:
  392. server-addr: 127.0.0.1:9603
  393. region: DEFAULT_ZONE
  394. datacenter: DefaultDataCenter
  395. group: SEATA_GROUP
  396. addressWaitTime: 3000
  397. application: default
  398. zk:
  399. server-addr: 127.0.0.1:2181
  400. session-timeout: 6000
  401. connect-timeout: 2000
  402. username: ""
  403. password: ""
  404. # 注册中心
  405. eureka:
  406. client:
  407. healthcheck:
  408. enabled: false
  409. service-url:
  410. defaultZone: http://127.0.0.1:8761/eureka/
  411. instance:
  412. lease-expiration-duration-in-seconds: 30
  413. lease-renewal-interval-in-seconds: 10
  414. # 注册到eureka时使用ip地址
  415. prefer-ip-address: false
  416. # eureka会自动识别每个微服务的ip地址,如果需要指定ip则配置该属性
  417. # ip-address: 127.0.0.1
  418. instance-id: ${spring.cloud.client.ip-address}:${server.port}
  419. # feign配置
  420. feign:
  421. hystrix:
  422. enabled: false
  423. httpclient:
  424. enabled: false
  425. client:
  426. config:
  427. default:
  428. connectTimeout: 6000000
  429. readTimeout: 6000000
  430. loggerLevel: full
  431. # 断路器配置
  432. hystrix:
  433. metrics:
  434. enabled: false
  435. command:
  436. default:
  437. execution:
  438. isolation:
  439. strategy: SEMAPHORE # THREAD SEMAPHORE
  440. semaphore:
  441. maxConcurrentRequests: 200 # 默认情况下下面两个值都是10,也就是超过10个的并发会直接进入fallback方法,不会去真正请求
  442. thread:
  443. timeoutInMilliseconds: 120000 #缺省为1000
  444. fallback:
  445. isolation:
  446. semaphore:
  447. maxConcurrentRequests: 200 # 默认情况下下面两个值都是10,也就是超过10个的并发会直接进入fallback方法,不会去真正请求
  448. # 负载均衡配置
  449. ribbon:
  450. eureka:
  451. enabled: false
  452. # uniapp集成的个推
  453. unipush:
  454. appId: ShVpFTXPhu9SIHivD2Kon6
  455. appKey: YJWwctAp916G9uoWfPwh2A
  456. appSecret: uqgpgsFSLx5RgUG5nvlpZ4
  457. masterSecret: MJJ8lWVDAX77cr9kLUuBY9
  458. host: http://api.getui.com/apiex.htm
  459. xxl:
  460. job:
  461. enabled: false #如果使用xxl则不使用quartz
  462. accessToken: ''
  463. admin:
  464. addresses: http://192.168.1.100:8120/xxl-job-admin
  465. executor:
  466. address: ''
  467. appname: ${spring.application.name}
  468. ip: ''
  469. logpath: /data/applogs/xxl-job/jobhandler
  470. logretentiondays: 30
  471. port: 9999
  472. # 是否解决跨域问题
  473. cors:
  474. enable: true
  475. # 是否开启新版本
  476. NewVersion:
  477. open: true
  478. version: v2
  479. # 外部接口前缀
  480. openApi:
  481. prefix: openApi
  482. security:
  483. enabled: false
  484. sql:
  485. excludes:
  486. - /swagger-resources/configuration/ui
  487. - /swagger-resources
  488. - /swagger-resources/configuration/security
  489. - /swagger-ui.html
  490. - /proxy.stream
  491. - /hystrix.stream
  492. - /druid/*
  493. - /hystrix/*