--- #################### æ•°æ®åº“相关é…ç½® #################### spring: datasource: druid: # Druid ã€ç›‘控】相关的全局é…ç½® web-stat-filter: enabled: true stat-view-servlet: enabled: true allow: # 设置白åå•ï¼Œä¸å¡«åˆ™å…许所有访问 url-pattern: /druid/* login-username: # 控制å°ç®¡ç†ç”¨æˆ·å和密ç login-password: filter: stat: enabled: true log-slow-sql: true # æ…¢ SQL 记录 slow-sql-millis: 100 merge-sql: true wall: config: multi-statement-allow: true dynamic: # 多数æ®æºé…ç½® druid: # Druid ã€è¿žæŽ¥æ± 】相关的全局é…ç½® initial-size: 1 # åˆå§‹è¿žæŽ¥æ•° min-idle: 1 # 最å°è¿žæŽ¥æ± æ•°é‡ max-active: 20 # æœ€å¤§è¿žæŽ¥æ± æ•°é‡ max-wait: 600000 # é…置获å–连接ç‰å¾…超时的时间,å•ä½ï¼šæ¯«ç§’ time-between-eviction-runs-millis: 60000 # é…置间隔多久æ‰è¿›è¡Œä¸€æ¬¡æ£€æµ‹ï¼Œæ£€æµ‹éœ€è¦å…³é—的空闲连接,å•ä½ï¼šæ¯«ç§’ min-evictable-idle-time-millis: 300000 # é…ç½®ä¸€ä¸ªè¿žæŽ¥åœ¨æ± ä¸æœ€å°ç”Ÿå˜çš„时间,å•ä½ï¼šæ¯«ç§’ max-evictable-idle-time-millis: 900000 # é…ç½®ä¸€ä¸ªè¿žæŽ¥åœ¨æ± ä¸æœ€å¤§ç”Ÿå˜çš„时间,å•ä½ï¼šæ¯«ç§’ validation-query: SELECT 1 FROM DUAL # é…置检测连接是å¦æœ‰æ•ˆ test-while-idle: true test-on-borrow: false test-on-return: false primary: master datasource: master: url: jdbc:mysql://127.0.0.1:3306/iailab_fast_tenant_shasteel?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true # MySQL Connector/J 8.X 连接的示例 username: root password: 123456 # Redis é…置。Redisson 默认的é…置足够使用,一般ä¸éœ€è¦è¿›è¡Œè°ƒä¼˜ redis: host: 127.0.0.1 # åœ°å€ port: 6379 # ç«¯å£ database: 0 # æ•°æ®åº“索引 # password: 123456 # 密ç ï¼Œå»ºè®®ç”Ÿäº§çŽ¯å¢ƒå¼€å¯ --- #################### MQ 消æ¯é˜Ÿåˆ—相关é…ç½® #################### # rocketmq é…置项,对应 RocketMQProperties é…置类 rocketmq: name-server: 127.0.0.1:9876 # RocketMQ Namesrv spring: # RabbitMQ é…置项,对应 RabbitProperties é…置类 rabbitmq: host: 127.0.0.1 # RabbitMQ æœåŠ¡çš„åœ°å€ port: 5672 # RabbitMQ æœåŠ¡çš„ç«¯å£ username: guest # RabbitMQ æœåŠ¡çš„è´¦å· password: guest # RabbitMQ æœåŠ¡çš„密ç # Kafka é…置项,对应 KafkaProperties é…置类 kafka: bootstrap-servers: 127.0.0.1:9092 # 指定 Kafka Broker 地å€ï¼Œå¯ä»¥è®¾ç½®å¤šä¸ªï¼Œä»¥é€—å·åˆ†éš” --- #################### å¹³å°ç›¸å…³é…ç½® #################### # å¹³å°é…置项,设置当å‰é¡¹ç›®æ‰€æœ‰è‡ªå®šä¹‰çš„é…ç½® iailab: env: # 多环境的é…置项 tag: ${HOSTNAME} captcha: enable: false # 本地环境,暂时关é—图片验è¯ç ,方便登录ç‰æŽ¥å£çš„测试 security: mock-enable: true access-log: # 访问日志的é…置项 enable: false token: base-url: http://127.0.0.1:48080/admin-api/system tenant-id: 172 client-id: shasteel client-secret: shasteel111111111111111 username: shasteel password: 123456