application.yml 12 KB

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