初始化

This commit is contained in:
2025-04-16 17:47:42 +08:00
parent 92158cdd91
commit a5dd676a0a
6 changed files with 8 additions and 10 deletions

View File

@@ -70,11 +70,11 @@ public class CacheAutoConfiguration {
@Bean @Bean
public RedisCacheManager redisCacheManager(RedisTemplate<String, Object> redisTemplate, public RedisCacheManager redisCacheManager(RedisTemplate<String, Object> redisTemplate,
RedisCacheConfiguration redisCacheConfiguration, RedisCacheConfiguration redisCacheConfiguration,
CacheProperties yudaoCacheProperties) { CacheProperties cacheProperties) {
// 创建 RedisCacheWriter 对象 // 创建 RedisCacheWriter 对象
RedisConnectionFactory connectionFactory = Objects.requireNonNull(redisTemplate.getConnectionFactory()); RedisConnectionFactory connectionFactory = Objects.requireNonNull(redisTemplate.getConnectionFactory());
RedisCacheWriter cacheWriter = RedisCacheWriter.nonLockingRedisCacheWriter(connectionFactory, RedisCacheWriter cacheWriter = RedisCacheWriter.nonLockingRedisCacheWriter(connectionFactory,
BatchStrategies.scan(yudaoCacheProperties.getRedisScanBatchSize())); BatchStrategies.scan(cacheProperties.getRedisScanBatchSize()));
// 创建 TenantRedisCacheManager 对象 // 创建 TenantRedisCacheManager 对象
return new TimeoutRedisCacheManager(cacheWriter, redisCacheConfiguration); return new TimeoutRedisCacheManager(cacheWriter, redisCacheConfiguration);
} }

View File

@@ -1,5 +1,4 @@
芋道源码 http://www.iocoder.cn Application Version: ${tashow.info.version}
Application Version: ${yudao.info.version}
Spring Boot Version: ${spring-boot.version} Spring Boot Version: ${spring-boot.version}
.__ __. ______ .______ __ __ _______ .__ __. ______ .______ __ __ _______

View File

@@ -227,6 +227,6 @@ knife4j:
--- #################### 芋道相关配置 #################### --- #################### 芋道相关配置 ####################
yudao: tashow:
info: info:
version: 1.0.0 version: 1.0.0

View File

@@ -1,5 +1,4 @@
芋道源码 http://www.iocoder.cn Application Version: ${tashow.info.version}
Application Version: ${yudao.info.version}
Spring Boot Version: ${spring-boot.version} Spring Boot Version: ${spring-boot.version}
.__ __. ______ .______ __ __ _______ .__ __. ______ .______ __ __ _______

View File

@@ -60,7 +60,7 @@
<springProfile name="local"> <springProfile name="local">
<root level="INFO"> <root level="INFO">
<appender-ref ref="STDOUT"/> <appender-ref ref="STDOUT"/>
<!-- <appender-ref ref="GRPC"/> &lt;!&ndash; 本地环境下,如果不想接入 SkyWalking 日志服务,可以注释掉本行 &ndash;&gt;--> <appender-ref ref="GRPC"/> <!-- 本地环境下,如果不想接入 SkyWalking 日志服务,可以注释掉本行 -->
<appender-ref ref="ASYNC"/> <!-- 本地环境下,如果不想打印日志,可以注释掉本行 --> <appender-ref ref="ASYNC"/> <!-- 本地环境下,如果不想打印日志,可以注释掉本行 -->
</root> </root>
</springProfile> </springProfile>

View File

@@ -161,7 +161,7 @@ tashow:
swagger: swagger:
title: 管理后台 title: 管理后台
description: 提供管理员管理的所有功能 description: 提供管理员管理的所有功能
version: ${yudao.info.version} version: ${tashow.info.version}
tenant: # 多租户相关配置项 tenant: # 多租户相关配置项
enable: true enable: true
ignore-urls: ignore-urls: