#服务器配置 server: port: 9528 undertow: threads: # 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程 io: 16 # 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载 worker: 400 # 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理 buffer-size: 1024 # 是否分配的直接内存 direct-buffers: true spring: profiles: active: test datasource: # driver-class-name: com.mysql.cj.jdbc.Driver #driver-class-name: org.postgresql.Driver #driver-class-name: oracle.jdbc.OracleDriver #driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver #driver-class-name: dm.jdbc.driver.DmDriver druid: # MySql、PostgreSQL、SqlServer、DaMeng校验 validation-query: select 1 # Oracle校验 #validation-query: select 1 from dual validation-query-timeout: 2000 initial-size: 20 max-active: 100 min-idle: 5 max-wait: 60000 test-on-borrow: false test-on-return: false test-while-idle: true time-between-eviction-runs-millis: 60000 min-evictable-idle-time-millis: 300000 stat-view-servlet: enabled: true login-username: blade login-password: 1qaz@WSX web-stat-filter: enabled: true url-pattern: /* exclusions: '*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*' session-stat-enable: true session-stat-max-count: 10 # 超过时间限制是否回收 remove-abandoned: true # 超时时间;单位为秒。180秒=3分钟 remove-abandoned-timeout: 180 # 关闭abanded连接时输出错误日志 log-abandoned: true main: allow-circular-references: true #邮件配置 mail: # 配置 SMTP 服务器地址 host: smtp.qq.com # 发送者邮箱 username: 503*****@qq.com # 配置密码,注意不是真正的密码,而是刚刚申请到的授权码 password: apbpxb****bwtbiha # 端口号465或587 port: 587 # 默认的邮件编码为UTF-8 default-encoding: UTF-8 # 配置SSL 加密工厂 properties: mail: smtp: socketFactoryClass: javax.net.ssl.SSLSocketFactory #表示开启 DEBUG 模式,这样,邮件发送过程的日志会在控制台打印出来,方便排查错误 debug: true protocol: smtps # jackson: # date-format: yyyy-MM-dd HH:mm:ss # time-zone: GMT+8 # mybatis mybatis-plus: mapper-locations: classpath:org/springblade/**/mapper/*Mapper.xml #实体扫描,多个package用逗号或者分号分隔 typeAliasesPackage: org.springblade.**.entity #typeEnumsPackage: org.springblade.dashboard.entity.enums global-config: # 关闭MP3.0自带的banner banner: false db-config: #主键类型 0:"数据库ID自增", 1:"不操作", 2:"用户输入ID",3:"数字型snowflake", 4:"全局唯一ID UUID", 5:"字符串型snowflake"; id-type: assign_id #字段策略 insert-strategy: not_null update-strategy: not_null where-strategy: not_null #驼峰下划线转换 table-underline: true # 逻辑删除配置 # 逻辑删除全局值(1表示已删除,这也是Mybatis Plus的默认配置) logic-delete-value: 1 # 逻辑未删除全局值(0表示未删除,这也是Mybatis Plus的默认配置) logic-not-delete-value: 0 configuration: map-underscore-to-camel-case: true cache-enabled: false jdbc-type-for-null: 'null' #knife4j配置 knife4j: #启用 enable: true #基础认证 basic: enable: false username: blade password: blade #增强配置 setting: enableSwaggerModels: true enableDocumentManage: true enableHost: false enableHostText: http://localhost enableRequestCache: true enableFilterMultipartApis: false enableFilterMultipartApiMethodType: POST language: zh-CN enableFooter: false enableFooterCustom: true footerCustomContent: Copyright © 2022 BladeX All Rights Reserved #swagger公共信息 swagger: title: BladeX 接口文档系统 description: BladeX 接口文档系统 version: 3.0.1.RELEASE license: Powered By BladeX license-url: https://bladex.vip terms-of-service-url: https://bladex.vip contact: name: smallchill email: smallchill@163.com url: https://gitee.com/smallc #flowable配置 flowable: activity-font-name: \u5B8B\u4F53 label-font-name: \u5B8B\u4F53 annotation-font-name: \u5B8B\u4F53 check-process-definitions: false database-schema-update: false async-executor-activate: false async-history-executor-activate: false #报表配置--有漏洞关闭--20240613 report: enabled: false database: provider: prefix: blade- file-store-dir: D:/myfile/ureportDbfiles #oss默认配置 oss: enabled: true name: qiniu tenant-mode: true endpoint: https://srgdjczzxtpt.com:2080/gminio/jczz/ access-key: N_Loh1ngBqcJovwiAJqR91Ifj2vgOWHOf8AwBA_h secret-key: AuzuA1KHAbkIndCU0dB3Zfii2O3crHNODDmpxHRS bucket-name: bladex #第三方登陆配置 social: oauth: GITHUB: client-id: 233************ client-secret: 233************************************ redirect-uri: ${social.domain}/oauth/redirect/github GITEE: client-id: 233************ client-secret: 233************************************ redirect-uri: ${social.domain}/oauth/redirect/gitee WECHAT_OPEN: client-id: 233************ client-secret: 233************************************ redirect-uri: ${social.domain}/oauth/redirect/wechat QQ: client-id: 233************ client-secret: 233************************************ redirect-uri: ${social.domain}/oauth/redirect/qq DINGTALK: client-id: 233************ client-secret: 233************************************ redirect-uri: ${social.domain}/oauth/redirect/dingtalk #blade配置 blade: #token配置 token: #是否有状态 state: false sign-key: CJ0ZW5hbnRfaWQiOiIwMDAwMDAiLCJ1c2VyX25hbWUiOiIxNTE3MDcyMDY5NSIsInJlYWxfbmFtZSI6Inpob25nIiwidG9rZW5fdHlwZSI6ImFjY2Vzc190b2tlbiIsInJvbGVfbmFtZSI #redis序列化方式 redis: serializer-type: protostuff #接口配置 api: #报文加密配置 crypto: #启用报文加密配置 enabled: false #使用AesUtil.genAesKey()生成 aes-key: O2BEeIv399qHQNhD6aGW8R8DEj4bqHXm #使用DesUtil.genDesKey()生成 des-key: jMVCBsFGDQr1USHo #jackson配置 jackson: #null自动转空值 null-to-empty: false #大数字自动转字符串 big-num-to-string: true #支持text文本请求,与报文加密同时开启 support-text-plain: false #xss配置 xss: enabled: true skip-url: - /blade-chat/weixin - /blade-desk/notice/submit - /blade-flow/model/submit - /blade-article/article/submit #安全框架配置 secure: #接口放行 skip-url: - /blade-test/** - /sse/** - /blade-doorplateAddress/doorplateAddress/getFuncList - /blade-rotation/rotation/page - /blade-article/article/page - /blade-article/article/detail - /blade-articleComment/articleComment/page - /public_discuss/publicDiscuss/detail - /blade-userPublicEnroll/userPublicEnroll/page - /blade-topics/topics/lists - /blade-household/household/getHouseholdOtherInfo - /blade-resource/oss/endpoint/put-file - /blade-resource/oss/endpoint/put-file-attach-by-prefix-path - /blade-hiddenDangerRecord/** - /blade-system/user/getPoliceUser - /blade-policeAlarmRecords/policeAlarmRecords/save - /blade-smsSend/smsSend/send - /blade-system/user/register-user - /blade-eCallEventTwo/eCallEventTwo/synchronizeData - /jmreport/** - /public_discuss/publicDiscuss/publicDiscussTotal - /public_discuss/publicDiscuss/managementProtocol - /blade-place/place/getNearbyPlaceList # - /blade-householdLabel/** # - /blade-system/** # - /blade-doorplateAddress/doorplateAddress/** # - /blade-house/house/** # - /blade-household/household/** # - /blade-label/label/** # - /blade-houseRental/houseRental/** # - /blade-resource/oss/** # - /blade-place/** # - /blade-taskReportForRepairs/** # - /blade-placeExt/** # - /blade-grid/** # - /blade-community/** # - /blade-gridman/** # - /blade-propertyCompany/** # - /blade-eCallEvent/** # - /blade-system/** # - /blade-propertyCompanyComment/** # - /blade-policeStation/** # - /blade-policeAffairsGrid/** # - /blade-category/** - /blade-disputeRecord/** #授权认证配置 auth: - method: ALL pattern: /blade-chat/weixin/** expression: "hasAuth()" - method: POST pattern: /blade-desk/dashboard/upload expression: "hasTimeAuth(9, 17)" - method: POST pattern: /blade-desk/dashboard/submit expression: "hasAnyRole('administrator', 'admin', 'user')" #基础认证配置 basic: - method: ALL pattern: /blade-desk/dashboard/info username: "blade" password: "blade" #动态签名认证配置 sign: - method: ALL pattern: /blade-desk/dashboard/sign crypto: "sha1" #多终端认证配置 client: - client-id: sword path-patterns: - /blade-sword/** - client-id: saber path-patterns: - /blade-saber/** #多租户配置 tenant: #多租户增强 enhance: true #多租户授权保护 license: false #动态数据源功能 dynamic-datasource: false #动态数据源全局扫描 dynamic-global: false #多租户字段名 column: tenant_id #排除多租户逻辑 exclude-tables: - blade_user sms: url: https://mas.jx139.com:8443/sopA/ appId: 202403288666059313538996533 privateKey: MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCCL4tz9BbUz+z3vs/eFwmUmQhsTiP3ZLwruTMJuEhsTEsT58PrdUOKGipwhKF88zj8SCk/Tn8izvDXj5IzqHEWjSEkf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eHg70vaKkyQzb5nuNDLw1O3pF/hjVPY8oBAoGAFLW5nElqqdRLgx43o4eyf2Qp3WJYZYO9CBhVZOcaZA1pbd/DOy3em/XGx42lddejO6A7X8ekpjZ7m4OKPXNakZBa/KCQbIeRAhe6R2Cx0QW2I4e0AbmXmNdJGxu/Rd3FrX+K/H/h31y1gGMyi3Gjz4UoUTsKVzn3aSC4satbfeUCgYEAmpIo2ZO4hQ9THCOdgR5udXRG5s5JjGEct2QSxXntRyJm3RAkPA3/mEDVlI6X5UNIn7BKeThCFo5eM2bbFFF4sFeNV0W4uP8p9dsOnpwU7FzT++16WNiBopQpff72MNzjnt/k/KLlX/zV60zbMJ1R6McYsv0LP9Zuv9RAo8v8ZDU= sopCreateBy: 106575361457 wxpay: api-v3-key: qqwuMJcCPRhcNcmFlqb6ucxdH appid: wxeeab25f4f176f1fc domain: https://srgdjczzxtpt.com:2080 mch-id: 1600701071 mch-serial-no: 4C19EAFA9E0AD598DDE3D7399B47C3D5C85 notify-domain: https://srgdjczzxtpt.com:2080/wxPay/native/notify partnerKey: qqwuMJcCPRhcNcmFlqb6ucxd private-key-path: /www/wwwroot/apiclient_key.pem private-cert-path: /www/wwwroot/apiclient_cert.p12 wxmini: appid: wxeeab25f4f176f1fc secret: 0a0e0d0a0c0b0a09080706050403020100 jscode2sessionUrl: https://api.weixin.qq.com/sns/jscode2session?appid={}&secret={}&js_code={}&grant_type=authorization_code