application: name: 统一认证服务 version: 1.0 description: 基于Spring Cloud的统一认证微服务 api: doc: enabled: true selector: org.mc.oas.api #开启驼峰命名规范自动映射 configuration: map-underscore-to-camel-case: true server: port: 8023 servlet: context-path: /ztb-spider-service spring: profiles: active: local application: name: eureka-client-ztb-spider-service version: 1.0 description: 千鸟数据中心 api-doc-enabled: true datasource: driver-class-name: com.mysql.cj.jdbc.Driver dynamic: primary: oas #设置默认的数据源或者数据源组 strict: true #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源 datasource: oas: url: ${mysql-database-url} #useSSL安全连接 useUnicode编码 characterEncoding编码格式 serverTimezone时区 username: ${mysql-user-name} password: ${mysql-user-password} hikari: minimum-idle: 3 maximum-pool-size: 10 max-lifetime: 30000 connection-test-query: SELECT 1 hikari: minimum-idle: 3 maximum-pool-size: 10 max-lifetime: 30000 connection-test-query: SELECT 1 redis: database: ${redis-database-index} host: ${redis-host} port: ${redis-port} password: ${redis-password} timeout: 3000 lettuce: pool: max-active: 200 max-idle: 20 min-idle: 10 max-wait: -1 servlet: multipart: enabled: true max-file-size: 100MB max-request-size: 105MB rabbitmq: virtual-host: ${rabbitmq-virtual-host} host: ${rabbitmq-host} port: ${rabbitmq-port} username: ${rabbitmq-username} password: ${rabbitmq-password} listener: simple: retry: enabled: true max-attempts: 3 initial-interval: 1000 default-requeue-rejected: false mybatis: mapper-locations: classpath:mapping/*Mapper.xml type-aliases-package: com.qniao.**.entity # mybatis-plus配置控制台打印完整带参数SQL语句 mybatis-plus: global-config: db-config: table-prefix: qn_ #原为 qn_ logic-delete-field: isDelete # 全局逻辑删除的实体字段名 logic-delete-value: 1 # 逻辑已删除值(默认为 1) logic-not-delete-value: 0 # 逻辑未删除值(默认为 0) configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl default-enum-type-handler: org.apache.ibatis.type.EnumOrdinalTypeHandler #支持数据库的枚举型转换 map-underscore-to-camel-case: true eureka: client: register-with-eureka: ${eureka-enable} fetch-registry: ${eureka-enable} service-url: defaultZone: ${register-eureka-url} instance: prefer-ip-address: true instance-id: ${spring.application.name}:${spring.cloud.client.ip-address}:${server.port} lease-expiration-duration-in-seconds: 15 lease-renewal-interval-in-seconds: 5 feign: hystrix: enabled: false client: config: default: connectTimeout: 10000 readTimeout: 60000 # DefaultClientConfigImpl ribbon: ConnectTimeout: 8000 ReadTimeout: 20000 management: endpoints: web: exposure: include: "*" endpoint: shutdown: enabled: true health: enabled: true show-details: always logging: config: classpath:logback.xml snow-flake: datacenter-id: 1 machine-id: 1 app: id: ztb-spider-service # Custom.Security employee: event: listenerQueue: ${employee-event-listenerQueue} exchageCode: ${employee-event-exchageCode} custom: security: loginUrl: ${employee-Custom-loginUrl} loginProcessingUrl: ${employee-Custom-loginProcessingUrl} logout: ${employee-Custom-logout} tokenAuthorizeRequests: ${employee-Custom-tokenAuthorizeRequests} # 不需要拦截的请求url request-pass-url: /swagger-ui.html||/webjars/**||/v2/**||/swagger-resources** x-app-id-pass-url: /utils/uploadImage||/utils/uploadImages||/utils/uploadFile||/delete/department-member-role/by-enterprise-member-id||/get/factory/user-permission-type||/recycle-service-feign/add/enterprise-profile ding-talk-alarm-robot-access-token: e10f76d44fa2b01a0d00e88ac256366577f6ead9511a0a92c40fbe32a2687d94 message-push-host: ${message-push-host} event-bus: thread-pool: core-pool-size: 2 max-pool-size: 2 keep-alive-time: 2 # 单位: 秒 allow-core-thread-timeOut: false xxl: job: admin: # 调度中心部署跟地址 [选填]:如调度中心集群部署存在多个地址则用逗号分隔。执行器将会使用该地址进行"执行器心跳注册"和"任务结果回调";为空则关闭自动注册; addresses: ${xxl-job-admin-addresses} executor: # 执行器AppName [选填]:执行器心跳注册分组依据;为空则关闭自动注册 appname: ${xxl-job-executor-appname} # 执行器端口号 [选填]:小于等于0则自动获取;默认端口为9999,单机部署多个执行器时,注意要配置不同执行器端口; port: ${xxl-job-executor-port} # 执行器日志文件保存天数 [选填] : 过期日志自动清理, 限制值大于等于3时生效; 否则, 如-1, 关闭自动清理功能; logretentiondays: 30 # 当前服务器IP ip: ${xxl-job-executor-ip} # 服务器文件存放路径 server-file-path: /home/files/ #开启驼峰命名规范自动映射 #spring: # profiles: # active: local # datasource: # driver-class-name: com.mysql.cj.jdbc.Driver # dynamic: # primary: oas #设置默认的数据源或者数据源组 # strict: true #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源 # datasource: # oas: # url: jdbc:mysql://52.81.89.46:3306/springboot?autoReconnect=true&useUnicode=true&characterEncoding=utf8&useTimezone=true&serverTimezone=GMT%2B8&useSSL=false&allowMultiQueries=true # #useSSL安全连接 useUnicode编码 characterEncoding编码格式 serverTimezone时区 # username: root # password: 704177820 # hikari: # minimum-idle: 3 # maximum-pool-size: 10 # max-lifetime: 30000 # connection-test-query: SELECT 1 debug: false