application.yml 13 KB

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