refactor(service): 修改IEntityService泛型为VO类型并优化缓存策略
重构所有注解@CacheConfig的Service类,将IEntityService泛型从实体类改为VO类 实现实体与VO之间的转换逻辑,使用VO替代实体进行缓存以避免序列化问题 更新相关依赖组件和测试用例,确保功能完整性和系统兼容性 优化Redis缓存配置,清理旧缓存数据并验证新缓存策略有效性
This commit is contained in:
@@ -98,6 +98,17 @@ public class SpringApp {
|
||||
context = application.run();
|
||||
logger.debug("SpringApp.launch application.run().");
|
||||
Duration between = Duration.between(startup.getBufferedTimeline().getStartTime(), Instant.now());
|
||||
|
||||
// 初始化MyProperties,从properties加载配置
|
||||
try {
|
||||
MyProperties myProperties = context.getBean(MyProperties.class);
|
||||
myProperties.loadFromProperties(properties);
|
||||
holder.info("MyProperties配置加载完成");
|
||||
} catch (Exception e) {
|
||||
logger.error("加载MyProperties配置失败", e);
|
||||
holder.error("加载MyProperties配置失败: " + e.getMessage());
|
||||
}
|
||||
|
||||
holder.info("应用程序环境加载完成... " + between);
|
||||
});
|
||||
CompletableFuture.runAsync(() -> {
|
||||
|
||||
Reference in New Issue
Block a user