application-test.yml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. server:
  2. #端口
  3. port: 8080
  4. context-path: /myboot
  5. spring:
  6. profiles: test
  7. jmx:
  8. default-domain: app2
  9. #redis
  10. redis:
  11. host: 127.0.0.1
  12. password:
  13. port: 6379
  14. pool:
  15. max-idle: 300
  16. min-idle: 20
  17. max-active: 600
  18. max-wait: 2000
  19. #数据源
  20. datasource:
  21. url: jdbc:mysql://localhost:33061/service_platform?useUnicode=true&characterEncoding=utf-8&useSSL=true&autoReconnect=true&allowMultiQueries=true
  22. # url: jdbc:mysql://47.105.241.108:33060/service_platform?useUnicode=true&characterEncoding=utf-8&useSSL=true&autoReconnect=true&allowMultiQueries=true
  23. username: root
  24. password: ${password}
  25. driver-class-name: com.mysql.jdbc.Driver
  26. # 使用druid数据源
  27. type: com.alibaba.druid.pool.DruidDataSource
  28. # 下面为连接池的补充设置,应用到上面所有数据源中
  29. # 初始化大小,最小,最大
  30. druid:
  31. initialSize: 5
  32. minIdle: 5
  33. maxActive: 20
  34. # 配置获取连接等待超时的时间
  35. maxWait: 60000
  36. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  37. timeBetweenEvictionRunsMillis: 60000
  38. # 配置一个连接在池中最小生存的时间,单位是毫秒
  39. minEvictableIdleTimeMillis: 300000
  40. validationQuery: SELECT 1 FROM DUAL
  41. testWhileIdle: false
  42. testOnBorrow: false
  43. testOnReturn: false
  44. # 打开PSCache,并且指定每个连接上PSCache的大小
  45. poolPreparedStatements: true
  46. maxPoolPreparedStatementPerConnectionSize: 20
  47. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  48. filters: stat,log4j,config
  49. # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
  50. connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000;config.decrypt=true;config.decrypt.key=${publicKey}
  51. filter:
  52. wall:
  53. enabled: true
  54. config:
  55. # 开启批量提交
  56. multi-statement-allow: true
  57. config:
  58. enabled: false
  59. # 合并多个DruidDataSource的监控数据
  60. #useGlobalDataSourceStat: true
  61. #Druid监控web配置
  62. web-stat-filter:
  63. url-pattern: /*
  64. enabled: false
  65. # exclusions: *.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*
  66. stat-view-servlet:
  67. enabled: false
  68. # url-pattern: /admin/sys/monitor/druid/*
  69. #设置白名单
  70. # allow: 10.105.0.220
  71. #设置黑名单
  72. deny:
  73. #设置登录查看信息的账号密码
  74. login-username: admin
  75. login-password: abc.123
  76. #视图
  77. mvc:
  78. view:
  79. prefix: /templates/
  80. suffix: .html
  81. #thymeleaf模版
  82. thymeleaf:
  83. cache: false
  84. mode: HTML
  85. encoding: UTF-8
  86. content-type: text/html
  87. #文件上传配置
  88. http:
  89. multipart:
  90. #开启文件上传
  91. enabled: true
  92. file-size-threshold: 0
  93. #懒加载
  94. resolve-lazily: true
  95. #单个文件的大小限制
  96. max-file-size: 300MB
  97. #整个请求文件的大小限制
  98. max-request-size: 300MB
  99. #jackson配置
  100. jackson:
  101. # 属性为NULL 不序列化
  102. default-property-inclusion: non_null
  103. # 解决数据库与jvm时区相差8小时的问题
  104. time-zone: GMT+8
  105. #mybatis
  106. mybatis:
  107. #指定目录类型别名扫描
  108. # type-aliases-package: platform.entity
  109. #指定mapper.xml的位置
  110. mapper-locations: classpath:mapper/**/*.xml
  111. configuration:
  112. #开启驼峰命名法转换字段支持,用于对象关系绑定
  113. map-underscore-to-camel-case: false
  114. #通用mapper
  115. mapper:
  116. mappers:
  117. platform.common.base.mapper.BaseMapper
  118. not-empty: false
  119. identity: MYSQL
  120. #分页插件
  121. pagehelper:
  122. helperDialect: mysql
  123. reasonable: true
  124. supportMethodsArguments: true
  125. params: count=countSql
  126. #测试小程序
  127. ##app_id
  128. #app_id: wx3007d6086b29908c
  129. #
  130. ##app_sercet
  131. #app_sercet: 68245dbd037f7516bcbe0eeafc1e01a9
  132. # 正式小程序
  133. #app_id
  134. app_id: wx27a06edbe6042585
  135. #app_sercet
  136. app_sercet: 10a09d22fb48ba84f892bbde056dac06
  137. activity_page_path_detail: pages/activity/activityDetail/main
  138. activity_page_path_sign: pages/activity/signInDetail/main
  139. openSms: true
  140. #日志
  141. logging:
  142. config: classpath:logback-jk.xml
  143. # path: /logs
  144. #数据库密码加密
  145. publicKey: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAJP9xpeVLUgoSLzliF3W2W8taamhxhNTvR02wFgO//Tr8WPI/ygioxCnijF8Xu9J27rvceuR+gYPP1DhoECcTlECAwEAAQ==
  146. password: UEcXQ3aeLYx487dvi4nvfO074GaTay9celB6/OwmtgyRzcVdOsJ2m15U8IZpat+aq9UPAnlErKsqbvKAYNhVTg==
  147. #上传文件配置信息
  148. #文件仓库地址
  149. repositoryPath: /Users/wangjiang/codeCache/xinqu_pic
  150. #新区接口地址
  151. api_url: http://snd.ideatob.com/mp/api/
  152. #访问路径
  153. fileUrl: http://47.105.241.108
  154. #apk文件存放地址
  155. apk_url: /opt/xinqu_pic/apk/
  156. #域名
  157. service_name: 47.105.241.108
  158. #key
  159. carrier_hash_key: industrial_carrier_token
  160. epoint:
  161. client-id: 998d3291-037b-4c4c-aa42-0e0f6fc00f67
  162. client-secret: 19bb468d-d857-41b5-a6b9-7fed4873e35c
  163. grant-type: authorization_code
  164. redirect-uri: http%3A%2F%2Fescloud.snd.gov.cn%2Findex%2F%23%2Fhome
  165. url:
  166. get-current-login-user: https://sst.suzhou.gov.cn/sst-smartcity-sso/rest/smartcitysso/getCurrentLoginUser
  167. get-token-by-code: https://sst.suzhou.gov.cn/sst-smartcity-sso/rest/oauth2/token
  168. jszypt:
  169. url:
  170. login: https://test.jszypt.com:23424/front/login-for-cloud-platfrom/login
  171. company_add_delete_map: 10.17.17.13:8888
  172. area-show-ip: 10.44.104.12
  173. area-show-port: 80
  174. #area-show-ip: 10.17.17.16
  175. #area-show-port: 6080
  176. resetPassword: 123456
  177. maxFileSize: 5120MB
  178. maxRequestSize: 5120MB
  179. # 企业服务中心负责人电话:wei.pp的电话
  180. company-master-phone: 18362602202
  181. # 企业服务中心负责人电话:lingwei的电话
  182. #company-master-phone: 18625008937
  183. #endpoints:
  184. # health:
  185. # sensitive: false
  186. referer:
  187. # 是否开启referer拦截
  188. enabled: true
  189. # 拦截referer白名单
  190. # 拦截referer白名单
  191. refererDomain:
  192. - escloud.snd.gov.cn
  193. - www.sme.com.cn
  194. - www.miit.gov.cn
  195. - www.jseic.gov.cn
  196. - credit.snd.gov.cn
  197. - www.szetc.gov.cn
  198. - www.snd.gov.cn