application.yml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. server:
  2. port: 8077
  3. tomcat:
  4. max-connections: 100000
  5. max-http-form-post-size: 102400000
  6. spring:
  7. web:
  8. resources:
  9. static-locations: file:D:\pengj\work\java\practice\src\main\resources\static\
  10. datasource:
  11. name: practice_db
  12. type: com.alibaba.druid.pool.DruidDataSource
  13. driver-class-name: com.mysql.cj.jdbc.Driver
  14. #基本属性
  15. url: jdbc:mysql://office.bowintek.com:3306/smartSearchDB?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true
  16. #url: jdbc:mysql://office.bowintek.com:3306/practicedb?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true
  17. username: root
  18. password: bowin123
  19. smartsearch:
  20. # 数据源基本配置
  21. username: root
  22. password: bowin123
  23. url: jdbc:mysql://office.bowintek.com:3306/smartSearchDB?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
  24. # driver-class需要注意mysql驱动的版本(com.mysql.cj.jdbc.Driver 或 com.mysql.jdbc.Driver)
  25. driver-class-name: com.mysql.jdbc.Driver
  26. postgre:
  27. # 数据源基本配置
  28. username: root
  29. password: bowin123
  30. url: jdbc:mysql://office.bowintek.com:3306/practicedb?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
  31. # driver-class需要注意mysql驱动的版本(com.mysql.cj.jdbc.Driver 或 com.mysql.jdbc.Driver)
  32. driver-class-name: com.mysql.jdbc.Driver
  33. druid:
  34. #监控统计拦截的filters
  35. filters: stat
  36. # driver-class-name: com.mysql.cj.jdbc.Driver
  37. # #基本属性
  38. # url: jdbc:mysql://office.bowintek.com:3306/smartSearchDB?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true
  39. # #url: jdbc:mysql://office.bowintek.com:3306/practicedb?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true
  40. # username: root
  41. # password: bowin123
  42. #配置初始化大小/最小/最大
  43. initial-size: 1
  44. min-idle: 1
  45. max-active: 20
  46. #获取连接等待超时时间
  47. max-wait: 60000
  48. #间隔多久进行一次检测,检测需要关闭的空闲连接
  49. time-between-eviction-runs-millis: 60000
  50. #一个连接在池中最小生存的时间
  51. min-evictable-idle-time-millis: 300000
  52. validation-query: SELECT 1
  53. test-while-idle: true
  54. test-on-borrow: false
  55. test-on-return: false
  56. #打开PSCache,并指定每个连接上PSCache的大小。oracle设为true,mysql设为false。分库分表较多推荐设置为false
  57. pool-prepared-statements: false
  58. max-pool-prepared-statement-per-connection-size: 20
  59. servlet:
  60. multipart:
  61. max-request-size: 50MB
  62. max-file-size: 20MB
  63. jackson:
  64. time-zone: GMT+8
  65. cache:
  66. redis:
  67. time-to-live: 60s
  68. type: redis
  69. redis:
  70. host: 192.168.0.68
  71. #host: 39.98.153.250
  72. port: 6379
  73. database: 0
  74. password: bowin123
  75. #password: borD1234
  76. timeout: 10000
  77. lettuce:
  78. pool:
  79. min-idle: 50
  80. max-idle: 100
  81. max-wait: -1
  82. max-active: 100
  83. #shutdown-timeout: 100ms
  84. mvc:
  85. async:
  86. request-timeout: 300000
  87. format:
  88. date: yyyy-MM-dd
  89. date-time: yyyy-MM-dd HH:mm:ss
  90. logging:
  91. config: classpath:logback-spring.xml
  92. mybatis:
  93. mapper-locations: classpath:mapping/*.xml,mapping/cquery/*.xml
  94. type-aliases-package: com.bowintek.practice.model
  95. configuration:
  96. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  97. pagehelper:
  98. helperDialect: mysql
  99. reasonable: true
  100. supportMethodsArguments: true
  101. params: count=countSql
  102. appconfig:
  103. #开发平台设置
  104. isDev: true
  105. uploadfile-url: d:/sitefile
  106. desKey: MMmmHHss
  107. #ftp配置 192.168.0.51:21@aqfxgk:qwe123
  108. #ftp-host: 192.168.0.68
  109. #ftp-port: 21
  110. #ftp-user: FtpUser
  111. #ftp-pwd: bowin123
  112. ftp-host: 39.98.145.11
  113. ftp-port: 21
  114. ftp-user: BowinFtp
  115. ftp-pwd: Ftp!A2019
  116. #定时服务执行配置
  117. jobconfig:
  118. isRunJob: true
  119. major-cron: '0 0 4 1 * ?'
  120. class-cron: '0 0 5 1 * ?'
  121. student-cron: '0 0 6 1 * ?'
  122. teacher-cron: '0 0 7 1 * ?'
  123. #同步教务系统组织结构数据配置
  124. educonfig:
  125. oracledb:
  126. username: sx_grant_view
  127. password: zytec712
  128. url: jdbc:oracle:thin:@//183.56.239.71:1521/edu_gdyfvccm
  129. driver-class-name: oracle.jdbc.OracleDriver
  130. oauthconfig:
  131. oauthUrl: http://open.mh.gdyfvccm.edu.cn:8008
  132. webServiceUrl: https://practice.gdyfvccm.edu.cn:8001/web/index.html#/login
  133. mobileServiceUrl: https://practice.gdyfvccm.edu.cn:8001/mobile
  134. client_id: 2d4a5b3c-dc6c-4231-914c-ca1a4d3a134b
  135. client_secret: e2afdc026c4e745714d2f3b2a2e393686c11f66f