server: #端口 port: 8080 context-path: /myboot spring: profiles: test jmx: default-domain: app2 #redis redis: host: 127.0.0.1 password: port: 6379 pool: max-idle: 300 min-idle: 20 max-active: 600 max-wait: 2000 #数据源 datasource: url: jdbc:mysql://localhost:33061/service_platform?useUnicode=true&characterEncoding=utf-8&useSSL=true&autoReconnect=true&allowMultiQueries=true # url: jdbc:mysql://47.105.241.108:33060/service_platform?useUnicode=true&characterEncoding=utf-8&useSSL=true&autoReconnect=true&allowMultiQueries=true username: root password: ${password} driver-class-name: com.mysql.jdbc.Driver # 使用druid数据源 type: com.alibaba.druid.pool.DruidDataSource # 下面为连接池的补充设置,应用到上面所有数据源中 # 初始化大小,最小,最大 druid: initialSize: 5 minIdle: 5 maxActive: 20 # 配置获取连接等待超时的时间 maxWait: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 timeBetweenEvictionRunsMillis: 60000 # 配置一个连接在池中最小生存的时间,单位是毫秒 minEvictableIdleTimeMillis: 300000 validationQuery: SELECT 1 FROM DUAL testWhileIdle: false testOnBorrow: false testOnReturn: false # 打开PSCache,并且指定每个连接上PSCache的大小 poolPreparedStatements: true maxPoolPreparedStatementPerConnectionSize: 20 # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙 filters: stat,log4j,config # 通过connectProperties属性来打开mergeSql功能;慢SQL记录 connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000;config.decrypt=true;config.decrypt.key=${publicKey} filter: wall: enabled: true config: # 开启批量提交 multi-statement-allow: true config: enabled: false # 合并多个DruidDataSource的监控数据 #useGlobalDataSourceStat: true #Druid监控web配置 web-stat-filter: url-pattern: /* enabled: false # exclusions: *.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/* stat-view-servlet: enabled: false # url-pattern: /admin/sys/monitor/druid/* #设置白名单 # allow: 10.105.0.220 #设置黑名单 deny: #设置登录查看信息的账号密码 login-username: admin login-password: abc.123 #视图 mvc: view: prefix: /templates/ suffix: .html #thymeleaf模版 thymeleaf: cache: false mode: HTML encoding: UTF-8 content-type: text/html #文件上传配置 http: multipart: #开启文件上传 enabled: true file-size-threshold: 0 #懒加载 resolve-lazily: true #单个文件的大小限制 max-file-size: 300MB #整个请求文件的大小限制 max-request-size: 300MB #jackson配置 jackson: # 属性为NULL 不序列化 default-property-inclusion: non_null # 解决数据库与jvm时区相差8小时的问题 time-zone: GMT+8 #mybatis mybatis: #指定目录类型别名扫描 # type-aliases-package: platform.entity #指定mapper.xml的位置 mapper-locations: classpath:mapper/**/*.xml configuration: #开启驼峰命名法转换字段支持,用于对象关系绑定 map-underscore-to-camel-case: false #通用mapper mapper: mappers: platform.common.base.mapper.BaseMapper not-empty: false identity: MYSQL #分页插件 pagehelper: helperDialect: mysql reasonable: true supportMethodsArguments: true params: count=countSql #测试小程序 ##app_id #app_id: wx3007d6086b29908c # ##app_sercet #app_sercet: 68245dbd037f7516bcbe0eeafc1e01a9 # 正式小程序 #app_id app_id: wx27a06edbe6042585 #app_sercet app_sercet: 10a09d22fb48ba84f892bbde056dac06 activity_page_path_detail: pages/activity/activityDetail/main activity_page_path_sign: pages/activity/signInDetail/main openSms: true #日志 logging: config: classpath:logback-jk.xml # path: /logs #数据库密码加密 publicKey: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAJP9xpeVLUgoSLzliF3W2W8taamhxhNTvR02wFgO//Tr8WPI/ygioxCnijF8Xu9J27rvceuR+gYPP1DhoECcTlECAwEAAQ== password: UEcXQ3aeLYx487dvi4nvfO074GaTay9celB6/OwmtgyRzcVdOsJ2m15U8IZpat+aq9UPAnlErKsqbvKAYNhVTg== #上传文件配置信息 #文件仓库地址 repositoryPath: /Users/wangjiang/codeCache/xinqu_pic #新区接口地址 api_url: http://snd.ideatob.com/mp/api/ #访问路径 fileUrl: http://47.105.241.108 #apk文件存放地址 apk_url: /opt/xinqu_pic/apk/ #域名 service_name: 47.105.241.108 #key carrier_hash_key: industrial_carrier_token epoint: client-id: 998d3291-037b-4c4c-aa42-0e0f6fc00f67 client-secret: 19bb468d-d857-41b5-a6b9-7fed4873e35c grant-type: authorization_code redirect-uri: http%3A%2F%2Fescloud.snd.gov.cn%2Findex%2F%23%2Fhome url: get-current-login-user: https://sst.suzhou.gov.cn/sst-smartcity-sso/rest/smartcitysso/getCurrentLoginUser get-token-by-code: https://sst.suzhou.gov.cn/sst-smartcity-sso/rest/oauth2/token jszypt: url: login: https://test.jszypt.com:23424/front/login-for-cloud-platfrom/login company_add_delete_map: 10.17.17.13:8888 area-show-ip: 10.44.104.12 area-show-port: 80 #area-show-ip: 10.17.17.16 #area-show-port: 6080 resetPassword: 123456 maxFileSize: 5120MB maxRequestSize: 5120MB # 企业服务中心负责人电话:wei.pp的电话 company-master-phone: 18362602202 # 企业服务中心负责人电话:lingwei的电话 #company-master-phone: 18625008937 #endpoints: # health: # sensitive: false referer: # 是否开启referer拦截 enabled: true # 拦截referer白名单 # 拦截referer白名单 refererDomain: - escloud.snd.gov.cn - www.sme.com.cn - www.miit.gov.cn - www.jseic.gov.cn - credit.snd.gov.cn - www.szetc.gov.cn - www.snd.gov.cn