server: port: 80 spring: servlet: multipart: location: /tmp/tomcat/work/Tomcat/localhost/ROOT redis: host: ${redis_host} port: ${redis_port} ${redisPassword} datasource: type: com.zaxxer.hikari.HikariDataSource platform: mysql continue-on-error: false # 在初始化数据库时,遇到错误是否继续 driver-class-name: com.mysql.jdbc.Driver # mysql驱动 url: jdbc:mysql://${datasource_host}:${datasource_port}/zzw1?useSSL=false&useUnicode=true&characterEncoding=utf-8 # 基础数据库名,用空就从config 去拉 username: ${datasource_username} # 数据用户名,需要从config-server中发现 password: ${datasource_password} # 数据用密码,需要从config-server中发现 useUnicode: true # 是否使用Unicode字符集,如果参数characterEncoding设置为gb2312或gbk,本参数值必须设置为true characterEncoding: utf8mb4 # 当useUnicode设置为true时,指定字符编码 autoCommit: true # 指定updates是否自动提交 autoReconnect: true # 当数据库连接异常中断时,是否自动重新连接 failOverReadOnly: false # 自动重连成功后,连接是否设置为只读 maxReconnects: 3 # autoReconnect设置为true时,重试连接的次数 initialTimeout: 2 # autoReconnect设置为true时,两次重连之间的时间间隔,单位:秒 zerodatetimebehavior: converttonull allowMultiQueries: true # 在一条语句中,允许使用“;”来分隔多条查询 testWhileIdle: true # 连接是否被空闲连接回收器(如果有)进行检验.如果检测失败,则连接将被从池中去除 test-on-borrow: true #在取出连接时进行有效验证 validation-query: select user() # 连接池 hikari: auto-commit: true # 指定updates是否自动提交 connection-test-query: select user() # 指定校验连接合法性执行的sql语句 connection-timeout: 60000 # 指定连接的超时时间,毫秒单位 idle-timeout: 10000 # 指定连接多久没被使用时,被设置为空闲,默认为10ms initialization-fail-fast: true # 当创建连接池时,没法创建指定最小连接数量是否抛异常 leak-detection-threshold: 60000 # 使用Hikari connection pool时,多少毫秒检测一次连接泄露. login-timeout: 10 # 指定连接数据库的超时时间 maximum-pool-size: 200 # 指定连接池最大的连接数,包括使用中的和空闲的连接. minimum-idle: 5 # 指定连接维护的最小空闲连接数 max-lifetime: 60000 #连接生命时长, 比mysql的wait_timeout短1分钟左右 weChat: app-id: ${weChat_appId} dev-mode: ${weChat_devMode} token: ${weChat_token} app-secret: ${weChat_appSecret} wx-article-count: ${weChat_wxArticleCount} encrypt-message: ${weChat_encryptMessage} encoding-aes-key: ${weChat_encodingAesKey} host: ${weChat_host} ws-host: ${weChat_wsHost} product-video: ${weChat_productVideo} zzwtec-open-api-base: ${weChat_zzwtecOpenApiBase} zzwtec-secret-key: ${weChat_zzwtecSecretKey} xteaKey: ${weChat_xteaKey} xteaIv: ${weChat_xteaIv} profile: ${weChat_profile} noticeTemplateId: ${weChat_noticeTemplateId} #物业通知消息模板id visitTemplateId: ${weChat_visitTemplateId} #来访提醒消息模板id feedbackTemplateId: ${weChat_feedbackTemplateId} #开锁反馈消息模板id sysUser: username: ${sysUser_username} password: ${sysUser_password} # 短信 sms: yzx: appid: ${sms_yzx_appid} sid: ${sms_yzx_sid} token: ${sms_yzx_token} templateid: ${sms_yzx_templateid} url: ${sms_yzx_url} openapi: url: login: ${weChat_zzwtecOpenApiBase}/admin/login login-out: ${weChat_zzwtecOpenApiBase}/admin/logout query-community-config-by-community-id: ${weChat_zzwtecOpenApiBase}/communityConfig/queryCommunityConfigByCommunityId query-community-info: ${weChat_zzwtecOpenApiBase}/community/queryCommunityInfo query-all-build-id-by-community-id: ${weChat_zzwtecOpenApiBase}/build/queryAllBuildIdByCommunityId query-cell-by-build-id: ${weChat_zzwtecOpenApiBase}/cell/queryCellByBuildId query-cell-by-cell-id: ${weChat_zzwtecOpenApiBase}/cell/queryCellByCellId add-cell: ${weChat_zzwtecOpenApiBase}/cell/addCell update-cell: ${weChat_zzwtecOpenApiBase}/cell/updateCell delete-cell-by-ids: ${weChat_zzwtecOpenApiBase}/cell/deleteCellByIds query-user-cell: ${weChat_zzwtecOpenApiBase}/userCell/queryUserCell delete-user-cell-by-user-id-cell-id: ${weChat_zzwtecOpenApiBase}/user/deleteUserCellByUserIdCellId add-user-by-user-cell-info: ${weChat_zzwtecOpenApiBase}/user/addUserByUserCellInfo update-user-by-user-cell-info: ${weChat_zzwtecOpenApiBase}/user/updateUserByUserCellInfo query-notice-by-community-id: ${weChat_zzwtecOpenApiBase}/news/queryNoticeByCommunityId query-notice-by-notice-id: ${weChat_zzwtecOpenApiBase}/news/queryNoticeByNoticeId query-build-by-community-id: ${weChat_zzwtecOpenApiBase}/build/queryBuildByCommunityId query-build-by-id: ${weChat_zzwtecOpenApiBase}/build/queryBuildById add-build: ${weChat_zzwtecOpenApiBase}/build/addBuild delete-build-by-ids: ${weChat_zzwtecOpenApiBase}/build/deleteBuildByIds update-build: ${weChat_zzwtecOpenApiBase}/build/updateBuild query-page-door-by-community-id-or-build-id: ${weChat_zzwtecOpenApiBase}/door/queryPageDoorByCommunityIdOrBuildId query-door-by-id: ${weChat_zzwtecOpenApiBase}/door/queryDoorById set-door-remote: ${weChat_zzwtecOpenApiBase}/door/setDoorRemote query-user-by-user-id: ${weChat_zzwtecOpenApiBase}/user/queryUserByUserId # 获取头像接口 face: headFaceUrl: http://fastdfs.zzwtec.com/