application.yml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. ###################
  2. #server配置
  3. ###################
  4. server:
  5. port: 98
  6. session:
  7. cookie:
  8. name: PICCGRABCOOKIE
  9. tomcat:
  10. uri-encoding: UTF-8
  11. management:
  12. port: 98
  13. ###################
  14. #banner配置
  15. ###################
  16. banner:
  17. charset: utf-8
  18. ###################
  19. #spring配置
  20. ###################
  21. spring:
  22. profiles:
  23. active: dev
  24. application:
  25. name: PICCGrab
  26. output:
  27. ansi:
  28. enabled: detect
  29. http:
  30. encoding:
  31. charset: UTF-8
  32. force: true
  33. enabled: true
  34. multipart:
  35. #单个文件大小
  36. maxFileSize: 10Mb
  37. #设置总上传的数据大小
  38. maxRequestSize: 10Mb
  39. #邮件服务配置
  40. mail:
  41. host: smtp.vip.126.com
  42. username: shiguche518@vip.126.com
  43. password: ITGGUJLHXJUJNZLU
  44. default-encoding: UTF-8
  45. properties:
  46. mail:
  47. smtp:
  48. starttls:
  49. enable: true
  50. required: true
  51. auth: true
  52. #配饰 SSL 加密工厂 阿里云25端口不可用
  53. socketFactory:
  54. port: 465
  55. class: javax.net.ssl.SSLSocketFactory
  56. fallback: false
  57. datasource:
  58. # url: jdbc:mysql://rm-bp104hy48869um47090130.mysql.rds.aliyuncs.com/nj_mdb?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf8&autoReconnect=true&serverTimezone=GMT%2B8&useSSL=true
  59. # username: md_pm
  60. # password: Cr#lGeYH
  61. url: jdbc:mysql://rm-2ze5n7na504yifpm05o.mysql.rds.aliyuncs.com/nj_mdb?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf8&autoReconnect=true&serverTimezone=GMT%2B8&useSSL=true
  62. username: md_nj
  63. password: 1Zy8fOxA
  64. driver-class-name: com.mysql.cj.jdbc.Driver
  65. #Druid连接池
  66. type: com.alibaba.druid.pool.DruidDataSource
  67. druid:
  68. #配置初始化大小、最小、最大
  69. initialSize: 5
  70. minIdle: 5
  71. maxActive: 20
  72. #配置获取连接等待超时的时间
  73. maxWait: 30000
  74. #配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  75. timeBetweenEvictionRunsMillis: 60000
  76. #配置一个连接在池中最小生存的时间,单位是毫秒
  77. minEvictableIdleTimeMillis: 300000
  78. validationQuery: SELECT 'x'
  79. testWhileIdle: true
  80. testOnBorrow: false
  81. testOnReturn: false
  82. #打开PSCache,并且指定每个连接上PSCache的大小
  83. poolPreparedStatements: true
  84. maxPoolPreparedStatementPerConnectionSize: 20
  85. #配置监控统计拦截的filters,去掉后监控界面sql无法统计
  86. #filters: stat
  87. freemarker:
  88. allow-request-override: false
  89. cache: false
  90. check-template-location: true
  91. charset: UTF-8
  92. content-type: text/html
  93. expose-request-attributes: true
  94. expose-session-attributes: true
  95. expose-spring-macro-helpers: false
  96. redis:
  97. host:
  98. port: 6379
  99. password:
  100. ###################
  101. #mybatis-plus
  102. ###################
  103. mybatis-plus:
  104. mapper-locations: classpath:xml/*Mapper.xml
  105. # sql 日志打印
  106. configuration:
  107. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  108. type-aliases-package: com.picc.grab.domain
  109. global-config:
  110. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  111. id-type: 3
  112. #字段策略 0:"忽略判断(所有字段都更新和插入)",1:"非 NULL 判断(只更新和插入非NULL值)",2:"非空判断(只更新和插入非NULL值且非空字符串)"
  113. field-strategy: 1
  114. #驼峰下划线转换
  115. db-column-underline: false
  116. #刷新mapper 调试神器
  117. refresh-mapper: true
  118. ####################
  119. #系统配置信息
  120. ####################
  121. cpm:
  122. system:
  123. #页头信息
  124. systemTitle: 账号管理
  125. #页脚信息
  126. systemFooter: Copy All Right © 2005-2018
  127. #是否启用验证码
  128. verCode: false
  129. slide: false
  130. #是否启用登陆错误锁定开关
  131. loginErrLockSwitch: false
  132. #允许登陆错误次数
  133. loginErrCount: 3
  134. #登陆错误锁定时间(分钟)
  135. loginErrLockTime: 30
  136. #最小差率
  137. clqjMin: -50
  138. #最大差率
  139. clqjMax: 50
  140. #报价阈值 主要是用这个区分是否是高端车,如果是贵的车,就让人复核下
  141. bjfz: 10000
  142. #上传配置
  143. uploadConf:
  144. # 上传文件保存方式 0本地保存,1 oss保存
  145. uploadType: 1
  146. # 本地保存路径类型 0工程目录内(uploadPath 相对路径 默认: static/upload 不可更改),1 工程目录外(uploadPath 绝对路径)
  147. uploadPathType: 0
  148. # 工程目录外(uploadPath 绝对路径) d:/uploadImg/
  149. uploadPath: /uploadImg/
  150. oss:
  151. #oss接入点
  152. endpoint: http://oss-cn-hangzhou.aliyuncs.com
  153. #阿里API账户
  154. accessKeyId: LTAI4G6dPEJDu3qr3VLtfRk6
  155. #阿里API密码
  156. accessKeySecret: 8gbxdupGtv6cwBZW0Wrta8taVyWx4u
  157. #oss文件保存的bucketName
  158. bucketName: car-jinjia
  159. #LOGO图片oss保存路径
  160. logoImgPath: upload/bj/
  161. readUrl: https://car-jinjia.oss-cn-hangzhou.aliyuncs.com/
  162. #运营平台
  163. carmanage:
  164. url: http://59.110.242.50
  165. #要访问的appname
  166. appname: grab
  167. secret: iuHS84Jx9ptfTcb1XOBAIJE
  168. #竞价app
  169. biddingapp:
  170. url: http://localhost:93
  171. #要访问的appname
  172. appname: grab
  173. secret: iuHS84Jx9ptfTcb1XOBAIJE