application.yml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  1. company_add_delete_map: 10.17.17.13:8888
  2. area-show-ip: 10.44.104.12
  3. area-show-port: 80
  4. #area-show-ip: 10.17.17.16
  5. #area-show-port: 6080
  6. resetPassword: 123456
  7. maxFileSize: 5120MB
  8. maxRequestSize: 5120MB
  9. #endpoints:
  10. # health:
  11. # sensitive: false
  12. spring:
  13. jmx:
  14. default-domain: app2
  15. #激活哪一个环境的配置文件
  16. profiles:
  17. # active: dev
  18. # active: test
  19. # active: aliyun
  20. # active: vpn
  21. # active: prod_in
  22. active: prod_out
  23. # active: prod_test
  24. #数据源
  25. datasource:
  26. driver-class-name: com.mysql.jdbc.Driver
  27. # 使用druid数据源
  28. type: com.alibaba.druid.pool.DruidDataSource
  29. # 下面为连接池的补充设置,应用到上面所有数据源中
  30. # 初始化大小,最小,最大
  31. druid:
  32. initialSize: 5
  33. minIdle: 5
  34. maxActive: 20
  35. # 配置获取连接等待超时的时间
  36. maxWait: 60000
  37. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  38. timeBetweenEvictionRunsMillis: 60000
  39. # 配置一个连接在池中最小生存的时间,单位是毫秒
  40. minEvictableIdleTimeMillis: 300000
  41. validationQuery: SELECT 1 FROM DUAL
  42. testWhileIdle: true
  43. testOnBorrow: false
  44. testOnReturn: false
  45. # 打开PSCache,并且指定每个连接上PSCache的大小
  46. poolPreparedStatements: true
  47. maxPoolPreparedStatementPerConnectionSize: 20
  48. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  49. filters: stat,log4j,config
  50. # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
  51. connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000;config.decrypt=true;config.decrypt.key=${publicKey}
  52. filter:
  53. wall:
  54. enabled: true
  55. config:
  56. # 开启批量提交
  57. multi-statement-allow: true
  58. # 合并多个DruidDataSource的监控数据
  59. #useGlobalDataSourceStat: true
  60. #Druid监控web配置
  61. web-stat-filter:
  62. url-pattern: /*
  63. # exclusions: *.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*
  64. stat-view-servlet:
  65. url-pattern: /admin/sys/monitor/druid/*
  66. #设置白名单
  67. # allow: 10.105.0.220
  68. #设置黑名单
  69. deny:
  70. #设置登录查看信息的账号密码
  71. # login-username: admin
  72. # login-password: admin
  73. #视图
  74. mvc:
  75. view:
  76. prefix: /templates/
  77. suffix: .html
  78. #thymeleaf模版
  79. thymeleaf:
  80. cache: false
  81. mode: HTML
  82. encoding: UTF-8
  83. content-type: text/html
  84. #文件上传配置
  85. http:
  86. multipart:
  87. #开启文件上传
  88. enabled: true
  89. file-size-threshold: 0
  90. #懒加载
  91. resolve-lazily: true
  92. #单个文件的大小限制
  93. max-file-size: 300MB
  94. #整个请求文件的大小限制
  95. max-request-size: 300MB
  96. #jackson配置
  97. jackson:
  98. # 属性为NULL 不序列化
  99. default-property-inclusion: non_null
  100. # 解决数据库与jvm时区相差8小时的问题
  101. time-zone: GMT+8
  102. #mybatis
  103. mybatis:
  104. #指定目录类型别名扫描
  105. # type-aliases-package: platform.entity
  106. #指定mapper.xml的位置
  107. mapper-locations: classpath:mapper/**/*.xml
  108. configuration:
  109. #开启驼峰命名法转换字段支持,用于对象关系绑定
  110. map-underscore-to-camel-case: false
  111. #通用mapper
  112. mapper:
  113. mappers:
  114. platform.common.base.mapper.BaseMapper
  115. not-empty: false
  116. identity: MYSQL
  117. #分页插件
  118. pagehelper:
  119. helperDialect: mysql
  120. reasonable: true
  121. supportMethodsArguments: true
  122. params: count=countSql
  123. #测试小程序
  124. #app_id
  125. #app_id: wx3007d6086b29908c
  126. #app_sercet
  127. #app_sercet: 68245dbd037f7516bcbe0eeafc1e01a9
  128. # 正式小程序
  129. ##app_id
  130. app_id: wx27a06edbe6042585
  131. ##app_sercet
  132. app_sercet: 10a09d22fb48ba84f892bbde056dac06
  133. activity_page_path_detail: pages/activity/activityDetail/main
  134. activity_page_path_sign: pages/activity/signInDetail/main
  135. ---
  136. #开发环境配置
  137. server:
  138. #端口
  139. port: 8080
  140. context-path: /myboot
  141. spring:
  142. profiles: dev
  143. #数据源
  144. datasource:
  145. url: jdbc:mysql://192.168.1.115:3306/service_platform?useUnicode=true&characterEncoding=utf-8&useSSL=true&autoReconnect=true&allowMultiQueries=true
  146. username: root
  147. password: ${password}
  148. #redis
  149. redis:
  150. host: 192.168.1.115
  151. password:
  152. port: 6379
  153. pool:
  154. max-idle: 300
  155. min-idle: 20
  156. max-active: 600
  157. max-wait: 2000
  158. #日志
  159. logging:
  160. config: classpath:logback-jk.xml
  161. # path: /Users/luohaifeng/logs
  162. #数据库密码加密
  163. #java -cp druid-1.1.0.jar com.alibaba.druid.filter.config.ConfigTools 你的密码
  164. publicKey: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAIYbzRqmoxLzAPpQer64U9MI+2WQOHMMl6BsYvSfBVodl2VjosyLSFDTu9UKYNh8P7cDujohKjc8GDiH6i/wq08CAwEAAQ==
  165. password: WD7ZuG4T27mDBFRXye2IfZZgrDsmPCtkMDfj8fGss8Iz/4aF27TLznaZ2mUbU273q5spfMzqUTmCiR1GvXZRMA==
  166. #上传文件配置信息
  167. #文件仓库地址
  168. repositoryPath: /opt/xinqu_pic
  169. #新区接口地址
  170. api_url: http://snd.ideatob.com/mp/api/
  171. #apk文件存放地址
  172. apk_url: E:\UPLOAD\
  173. #访问路径
  174. fileUrl: http://192.168.1.116:8001/uploads
  175. #域名
  176. service_name: 127.0.0.1
  177. #key
  178. carrier_hash_key: industrial_carrier_token
  179. ---
  180. #test环境配置
  181. server:
  182. #端口
  183. port: 8080
  184. context-path: /myboot
  185. spring:
  186. profiles: test
  187. #数据源
  188. datasource:
  189. url: jdbc:mysql://192.168.1.115:3306/service_platform_42_backup?useUnicode=true&characterEncoding=utf-8&useSSL=true&autoReconnect=true&allowMultiQueries=true
  190. username: root
  191. password: ${password}
  192. #redis
  193. redis:
  194. host: 192.168.1.115
  195. password:
  196. port: 6379
  197. pool:
  198. max-idle: 300
  199. min-idle: 20
  200. max-active: 600
  201. max-wait: 2000
  202. #日志
  203. logging:
  204. config: classpath:logback-jk.xml
  205. # path: /logs
  206. #数据库密码加密
  207. #java -cp druid-1.1.0.jar com.alibaba.druid.filter.config.ConfigTools 你的密码
  208. publicKey: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALA0LQXJvedvvS14LNKRXjLKOaudFAZILec5nturiNsRV7rK0FkSdXAlf7odQb9nZtDai+Bfn/4zC52xMr+KL6sCAwEAAQ==
  209. password: hTeoaFouO30aePF/U0NVf6bZCqh31q//05vP+uC7KnNDW2R3MOaQyEbzigzUVFEzVgZDtB+8FKllETyPfK3tUw==
  210. #上传文件配置信息
  211. #文件仓库地址
  212. repositoryPath: E:\UPLOAD\
  213. #新区接口地址
  214. api_url: http://snd.ideatob.com/mp/api/
  215. #apk文件存放地址
  216. apk_url: E:\UPLOAD\
  217. #访问路径
  218. fileUrl: http://10.43.26.201
  219. #域名
  220. service_name: 127.0.0.1
  221. #key
  222. carrier_hash_key: industrial_carrier_token
  223. ---
  224. #阿里环境配置
  225. server:
  226. #端口
  227. port: 8080
  228. context-path: /myboot
  229. spring:
  230. profiles: aliyun
  231. #数据源
  232. datasource:
  233. url: jdbc:mysql://47.105.241.108:33060/service_platform?useUnicode=true&characterEncoding=utf-8&useSSL=true&autoReconnect=true&allowMultiQueries=true
  234. username: root
  235. password: ${password}
  236. #redis
  237. redis:
  238. host: 192.168.1.115
  239. password:
  240. port: 6379
  241. pool:
  242. max-idle: 300
  243. min-idle: 20
  244. max-active: 600
  245. max-wait: 2000
  246. #日志
  247. logging:
  248. config: classpath:logback-jk.xml
  249. # path: /logs
  250. #数据库密码加密
  251. publicKey: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAJP9xpeVLUgoSLzliF3W2W8taamhxhNTvR02wFgO//Tr8WPI/ygioxCnijF8Xu9J27rvceuR+gYPP1DhoECcTlECAwEAAQ==
  252. password: UEcXQ3aeLYx487dvi4nvfO074GaTay9celB6/OwmtgyRzcVdOsJ2m15U8IZpat+aq9UPAnlErKsqbvKAYNhVTg==
  253. #上传文件配置信息
  254. #文件仓库地址
  255. repositoryPath: /opt/xinqu_pic
  256. #新区接口地址
  257. api_url: http://snd.ideatob.com/mp/api/
  258. #访问路径
  259. fileUrl: http://47.105.241.108
  260. #apk文件存放地址
  261. apk_url: /opt/xinqu_pic/apk/
  262. #域名
  263. service_name: 47.105.241.108
  264. #key
  265. carrier_hash_key: industrial_carrier_token
  266. ---
  267. #开发环境配置
  268. server:
  269. #端口
  270. port: 8082
  271. context-path: /myboot
  272. spring:
  273. profiles: prod_in
  274. #数据源
  275. datasource:
  276. url: jdbc:mysql://10.44.104.42:3306/service_platform?useUnicode=true&characterEncoding=utf-8&useSSL=true&autoReconnect=true&allowMultiQueries=true
  277. username: root
  278. password: ${password}
  279. #redis
  280. redis:
  281. host: 10.44.104.41
  282. password:
  283. port: 6379
  284. pool:
  285. max-idle: 300
  286. min-idle: 20
  287. max-active: 600
  288. max-wait: 2000
  289. #日志
  290. logging:
  291. config: classpath:logback-jk.xml
  292. # path: /logs
  293. #数据库密码加密
  294. #java -cp druid-1.1.0.jar com.alibaba.druid.filter.config.ConfigTools 你的密码
  295. publicKey: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALSe1dMslAZZ94+U/iQAIbFDwghSFrPINaKUcDye7Wz4M3CUoC4j9SNVRctoZrSD8DkEZ3DtWKOc7rUQ2i57vrkCAwEAAQ==
  296. password: nMaV5AOJohrh31/XYILaHGn3Y8gM+Lkem9xD/gEBDsxXrgij1bnYzBNRdvfG6BnuUYT9k2SvUd5Qt+uS3h1dPQ==
  297. #上传文件配置信息
  298. #文件仓库地址
  299. repositoryPath: /opt/xinqu_pic
  300. #新区接口地址
  301. api_url: http://snd.ideatob.com/mp/api/
  302. #访问路径
  303. fileUrl: http://10.44.104.41:8080/uploads
  304. #apk文件存放地址
  305. apk_url: /opt/xinqu_pic/apk/
  306. #域名
  307. service_name: 10.44.104.41
  308. #key
  309. carrier_hash_key: industrial_carrier_token
  310. ---
  311. #prod外网环境配置
  312. server:
  313. #端口
  314. port: 8082
  315. context-path: /myboot
  316. spring:
  317. profiles: prod_out
  318. #数据源
  319. datasource:
  320. url: jdbc:mysql://10.44.104.42:3306/service_platform?useUnicode=true&characterEncoding=utf-8&useSSL=true&autoReconnect=true&allowMultiQueries=true
  321. username: root
  322. password: ${password}
  323. #redis
  324. redis:
  325. host: 192.168.173.19
  326. password:
  327. port: 6379
  328. pool:
  329. max-idle: 300
  330. min-idle: 20
  331. max-active: 600
  332. max-wait: 2000
  333. #日志
  334. logging:
  335. config: classpath:logback-jk.xml
  336. # path: /logs
  337. #数据库密码加密
  338. #java -cp druid-1.1.0.jar com.alibaba.druid.filter.config.ConfigTools 你的密码
  339. publicKey: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALSe1dMslAZZ94+U/iQAIbFDwghSFrPINaKUcDye7Wz4M3CUoC4j9SNVRctoZrSD8DkEZ3DtWKOc7rUQ2i57vrkCAwEAAQ==
  340. password: nMaV5AOJohrh31/XYILaHGn3Y8gM+Lkem9xD/gEBDsxXrgij1bnYzBNRdvfG6BnuUYT9k2SvUd5Qt+uS3h1dPQ==
  341. repositoryPath: /opt/xinqu_pic
  342. #新区接口地址
  343. api_url: http://snd.ideatob.com/mp/api/
  344. #访问路径
  345. fileUrl: http://escloud.snd.gov.cn/uploads
  346. #访问外网路径
  347. fileOutUrl: http://escloud.snd.gov.cn/uploads
  348. #apk文件存放地址
  349. apk_url: /opt/xinqu_pic/apk/
  350. #域名
  351. service_name: escloud.snd.gov.cn
  352. #key
  353. carrier_hash_key: industrial_carrier_token
  354. ---
  355. #prod-test外网环境配置
  356. server:
  357. #端口
  358. port: 8082
  359. context-path: /myboot
  360. spring:
  361. profiles: prod_test
  362. #数据源
  363. datasource:
  364. url: jdbc:mysql://192.168.173.81:8090/service_platform?useUnicode=true&characterEncoding=utf-8&useSSL=true&autoReconnect=true&allowMultiQueries=true
  365. username: root
  366. password: ${password}
  367. #redis
  368. redis:
  369. host: 192.168.173.81
  370. password:
  371. port: 6379
  372. pool:
  373. max-idle: 300
  374. min-idle: 20
  375. max-active: 600
  376. max-wait: 2000
  377. #日志
  378. logging:
  379. config: classpath:logback-jk.xml
  380. # path: /logs
  381. #数据库密码加密
  382. #java -cp druid-1.1.0.jar com.alibaba.druid.filter.config.ConfigTools 你的密码
  383. publicKey: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALSe1dMslAZZ94+U/iQAIbFDwghSFrPINaKUcDye7Wz4M3CUoC4j9SNVRctoZrSD8DkEZ3DtWKOc7rUQ2i57vrkCAwEAAQ==
  384. password: nMaV5AOJohrh31/XYILaHGn3Y8gM+Lkem9xD/gEBDsxXrgij1bnYzBNRdvfG6BnuUYT9k2SvUd5Qt+uS3h1dPQ==
  385. repositoryPath: /opt/xinqu_pic
  386. #新区接口地址
  387. api_url: http://snd.ideatob.com/mp/api/
  388. #访问路径
  389. fileUrl: http://202.102.20.60:9090/uploads
  390. #访问外网路径
  391. fileOutUrl: http://202.102.20.60:9090/uploads
  392. #apk文件存放地址
  393. apk_url: /opt/xinqu_pic/apk/
  394. #域名
  395. service_name: 202.102.20.60
  396. #key
  397. carrier_hash_key: industrial_carrier_token