application.yml 11 KB

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