application.yml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461
  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. #
  132. ##app_sercet
  133. #app_sercet: 10a09d22fb48ba84f892bbde056dac06
  134. activity_page_path_detail: pages/activity/activityDetail/main
  135. activity_page_path_sign: pages/activity/signInDetail/main
  136. ---
  137. #开发环境配置
  138. server:
  139. #端口
  140. port: 8080
  141. context-path: /myboot
  142. spring:
  143. profiles: dev
  144. #数据源
  145. datasource:
  146. # url: jdbc:mysql://192.168.1.115:3306/service_platform?useUnicode=true&characterEncoding=utf-8&useSSL=true&autoReconnect=true&allowMultiQueries=true
  147. url: jdbc:mysql://222.92.16.3:33061/service_platform?useUnicode=true&characterEncoding=utf-8&useSSL=true&autoReconnect=true&allowMultiQueries=true
  148. # url: jdbc:mysql://10.44.104.42:3306/service_platform?useUnicode=true&characterEncoding=utf-8&useSSL=true&autoReconnect=true&allowMultiQueries=true
  149. username: root
  150. password: ${password}
  151. #redis
  152. redis:
  153. host: 192.168.1.115
  154. password:
  155. port: 6379
  156. pool:
  157. max-idle: 300
  158. min-idle: 20
  159. max-active: 600
  160. max-wait: 2000
  161. #日志
  162. logging:
  163. config: classpath:logback-jk.xml
  164. # path: /Users/luohaifeng/logs
  165. #数据库密码加密
  166. #java -cp druid-1.1.0.jar com.alibaba.druid.filter.config.ConfigTools 你的密码
  167. publicKey: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAIYbzRqmoxLzAPpQer64U9MI+2WQOHMMl6BsYvSfBVodl2VjosyLSFDTu9UKYNh8P7cDujohKjc8GDiH6i/wq08CAwEAAQ==
  168. password: WD7ZuG4T27mDBFRXye2IfZZgrDsmPCtkMDfj8fGss8Iz/4aF27TLznaZ2mUbU273q5spfMzqUTmCiR1GvXZRMA==
  169. #上传文件配置信息
  170. #文件仓库地址
  171. repositoryPath: /opt/xinqu_pic
  172. #新区接口地址
  173. api_url: http://snd.ideatob.com/mp/api/
  174. #apk文件存放地址
  175. apk_url: E:\UPLOAD\
  176. #访问路径
  177. fileUrl: http://192.168.1.116:8001/uploads
  178. #域名
  179. service_name: 127.0.0.1
  180. #key
  181. carrier_hash_key: industrial_carrier_token
  182. ---
  183. #test环境配置
  184. server:
  185. #端口
  186. port: 8080
  187. context-path: /myboot
  188. spring:
  189. profiles: test
  190. #数据源
  191. datasource:
  192. url: jdbc:mysql://192.168.1.115:3306/service_platform_42_backup?useUnicode=true&characterEncoding=utf-8&useSSL=true&autoReconnect=true&allowMultiQueries=true
  193. username: root
  194. password: ${password}
  195. #redis
  196. redis:
  197. host: 192.168.1.115
  198. password:
  199. port: 6379
  200. pool:
  201. max-idle: 300
  202. min-idle: 20
  203. max-active: 600
  204. max-wait: 2000
  205. #日志
  206. logging:
  207. config: classpath:logback-jk.xml
  208. # path: /logs
  209. #数据库密码加密
  210. #java -cp druid-1.1.0.jar com.alibaba.druid.filter.config.ConfigTools 你的密码
  211. publicKey: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALA0LQXJvedvvS14LNKRXjLKOaudFAZILec5nturiNsRV7rK0FkSdXAlf7odQb9nZtDai+Bfn/4zC52xMr+KL6sCAwEAAQ==
  212. password: hTeoaFouO30aePF/U0NVf6bZCqh31q//05vP+uC7KnNDW2R3MOaQyEbzigzUVFEzVgZDtB+8FKllETyPfK3tUw==
  213. #上传文件配置信息
  214. #文件仓库地址
  215. repositoryPath: E:\UPLOAD\
  216. #新区接口地址
  217. api_url: http://snd.ideatob.com/mp/api/
  218. #apk文件存放地址
  219. apk_url: E:\UPLOAD\
  220. #访问路径
  221. fileUrl: http://10.43.26.201
  222. #域名
  223. service_name: 127.0.0.1
  224. #key
  225. carrier_hash_key: industrial_carrier_token
  226. ---
  227. #阿里环境配置
  228. server:
  229. #端口
  230. port: 8080
  231. context-path: /myboot
  232. spring:
  233. profiles: aliyun
  234. #数据源
  235. datasource:
  236. url: jdbc:mysql://47.105.241.108:33060/service_platform_42_backup?useUnicode=true&characterEncoding=utf-8&useSSL=true&autoReconnect=true&allowMultiQueries=true
  237. username: root
  238. password: ${password}
  239. #redis
  240. redis:
  241. host: 192.168.1.115
  242. password:
  243. port: 6379
  244. pool:
  245. max-idle: 300
  246. min-idle: 20
  247. max-active: 600
  248. max-wait: 2000
  249. #日志
  250. logging:
  251. config: classpath:logback-jk.xml
  252. # path: /logs
  253. #数据库密码加密
  254. publicKey: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAJP9xpeVLUgoSLzliF3W2W8taamhxhNTvR02wFgO//Tr8WPI/ygioxCnijF8Xu9J27rvceuR+gYPP1DhoECcTlECAwEAAQ==
  255. password: UEcXQ3aeLYx487dvi4nvfO074GaTay9celB6/OwmtgyRzcVdOsJ2m15U8IZpat+aq9UPAnlErKsqbvKAYNhVTg==
  256. #上传文件配置信息
  257. #文件仓库地址
  258. repositoryPath: /opt/xinqu_pic
  259. #新区接口地址
  260. api_url: http://snd.ideatob.com/mp/api/
  261. #访问路径
  262. fileUrl: http://47.105.241.108
  263. #apk文件存放地址
  264. apk_url: /opt/xinqu_pic/apk/
  265. #域名
  266. service_name: 47.105.241.108
  267. #key
  268. carrier_hash_key: industrial_carrier_token
  269. ---
  270. #开发环境配置
  271. server:
  272. #端口
  273. port: 8082
  274. context-path: /myboot
  275. spring:
  276. profiles: prod_in
  277. #数据源
  278. datasource:
  279. url: jdbc:mysql://10.44.104.42:3306/service_platform?useUnicode=true&characterEncoding=utf-8&useSSL=true&autoReconnect=true&allowMultiQueries=true
  280. username: root
  281. password: ${password}
  282. #redis
  283. redis:
  284. host: 10.44.104.41
  285. password:
  286. port: 6379
  287. pool:
  288. max-idle: 300
  289. min-idle: 20
  290. max-active: 600
  291. max-wait: 2000
  292. #日志
  293. logging:
  294. config: classpath:logback-jk.xml
  295. level: debug
  296. # path: /logs
  297. #数据库密码加密
  298. #java -cp druid-1.1.0.jar com.alibaba.druid.filter.config.ConfigTools 你的密码
  299. publicKey: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALSe1dMslAZZ94+U/iQAIbFDwghSFrPINaKUcDye7Wz4M3CUoC4j9SNVRctoZrSD8DkEZ3DtWKOc7rUQ2i57vrkCAwEAAQ==
  300. password: nMaV5AOJohrh31/XYILaHGn3Y8gM+Lkem9xD/gEBDsxXrgij1bnYzBNRdvfG6BnuUYT9k2SvUd5Qt+uS3h1dPQ==
  301. #上传文件配置信息
  302. #文件仓库地址
  303. repositoryPath: /opt/xinqu_pic
  304. #新区接口地址
  305. api_url: http://snd.ideatob.com/mp/api/
  306. #访问路径
  307. fileUrl: http://10.44.104.41:8080/uploads
  308. #apk文件存放地址
  309. apk_url: /opt/xinqu_pic/apk/
  310. #域名
  311. service_name: 10.44.104.41
  312. #key
  313. carrier_hash_key: industrial_carrier_token
  314. ---
  315. #prod外网环境配置
  316. server:
  317. #端口
  318. port: 8082
  319. context-path: /myboot
  320. spring:
  321. profiles: prod_out
  322. #数据源
  323. datasource:
  324. url: jdbc:mysql://10.44.104.42:3306/service_platform?useUnicode=true&characterEncoding=utf-8&useSSL=true&autoReconnect=true&allowMultiQueries=true
  325. username: root
  326. password: ${password}
  327. #redis
  328. redis:
  329. host: 192.168.173.19
  330. password:
  331. port: 6379
  332. pool:
  333. max-idle: 300
  334. min-idle: 20
  335. max-active: 600
  336. max-wait: 2000
  337. #日志
  338. logging:
  339. config: classpath:logback-jk.xml
  340. # path: /logs
  341. #数据库密码加密
  342. #java -cp druid-1.1.0.jar com.alibaba.druid.filter.config.ConfigTools 你的密码
  343. publicKey: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALSe1dMslAZZ94+U/iQAIbFDwghSFrPINaKUcDye7Wz4M3CUoC4j9SNVRctoZrSD8DkEZ3DtWKOc7rUQ2i57vrkCAwEAAQ==
  344. password: nMaV5AOJohrh31/XYILaHGn3Y8gM+Lkem9xD/gEBDsxXrgij1bnYzBNRdvfG6BnuUYT9k2SvUd5Qt+uS3h1dPQ==
  345. repositoryPath: /opt/xinqu_pic
  346. #新区接口地址
  347. api_url: http://snd.ideatob.com/mp/api/
  348. #访问路径
  349. fileUrl: http://escloud.snd.gov.cn/uploads
  350. #访问外网路径
  351. fileOutUrl: http://escloud.snd.gov.cn/uploads
  352. #apk文件存放地址
  353. apk_url: /opt/xinqu_pic/apk/
  354. #域名
  355. service_name: escloud.snd.gov.cn
  356. #key
  357. carrier_hash_key: industrial_carrier_token
  358. ---
  359. #prod-test外网环境配置
  360. server:
  361. #端口
  362. port: 8082
  363. context-path: /myboot
  364. spring:
  365. profiles: prod_test
  366. #数据源
  367. datasource:
  368. url: jdbc:mysql://192.168.173.81:8090/service_platform?useUnicode=true&characterEncoding=utf-8&useSSL=true&autoReconnect=true&allowMultiQueries=true
  369. username: root
  370. password: ${password}
  371. #redis
  372. redis:
  373. host: 192.168.173.81
  374. password:
  375. port: 6379
  376. pool:
  377. max-idle: 300
  378. min-idle: 20
  379. max-active: 600
  380. max-wait: 2000
  381. #日志
  382. logging:
  383. config: classpath:logback-jk.xml
  384. # path: /logs
  385. #数据库密码加密
  386. #java -cp druid-1.1.0.jar com.alibaba.druid.filter.config.ConfigTools 你的密码
  387. publicKey: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALSe1dMslAZZ94+U/iQAIbFDwghSFrPINaKUcDye7Wz4M3CUoC4j9SNVRctoZrSD8DkEZ3DtWKOc7rUQ2i57vrkCAwEAAQ==
  388. password: nMaV5AOJohrh31/XYILaHGn3Y8gM+Lkem9xD/gEBDsxXrgij1bnYzBNRdvfG6BnuUYT9k2SvUd5Qt+uS3h1dPQ==
  389. repositoryPath: /opt/xinqu_pic
  390. #新区接口地址
  391. api_url: http://snd.ideatob.com/mp/api/
  392. #访问路径
  393. fileUrl: http://202.102.20.60:9090/uploads
  394. #访问外网路径
  395. fileOutUrl: http://202.102.20.60:9090/uploads
  396. #apk文件存放地址
  397. apk_url: /opt/xinqu_pic/apk/
  398. #域名
  399. service_name: 202.102.20.60
  400. #key
  401. carrier_hash_key: industrial_carrier_token