278 Star 2.5K Fork 701

如梦技术 / mica

 / 详情

在springboot2.7.18中引入mica-redis启动告警怎么办?

已完成
创建于  
2023-12-26 12:19
    <dependency>
        <groupId>net.dreamlu</groupId>
        <artifactId>mica-redis</artifactId>
        <version>2.7.18</version>
    </dependency>

Bean 'net.dreamlu.mica.redis.config.RedisPubSubConfiguration' of type [net.dreamlu.mica.redis.config.RedisPubSubConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Bean 'spring.redis-org.springframework.boot.autoconfigure.data.redis.RedisProperties' of type [org.springframework.boot.autoconfigure.data.redis.RedisProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Bean 'org.springframework.boot.autoconfigure.data.redis.LettuceConnectionConfiguration' of type [org.springframework.boot.autoconfigure.data.redis.LettuceConnectionConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Bean 'lettuceClientResources' of type [io.lettuce.core.resource.DefaultClientResources] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Bean 'redisConnectionFactory' of type [org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Bean 'stringKeyRedisTemplate' of type [org.springframework.data.redis.core.RedisTemplate] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Bean 'net.dreamlu.mica.redis.config.RedisTemplateConfiguration' of type [net.dreamlu.mica.redis.config.RedisTemplateConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Bean 'mica.redis-net.dreamlu.mica.redis.config.MicaRedisProperties' of type [net.dreamlu.mica.redis.config.MicaRedisProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Bean 'redisSerializer' of type [org.springframework.data.redis.serializer.GenericJackson2JsonRedisSerializer] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Bean 'spring.cache-org.springframework.boot.autoconfigure.cache.CacheProperties' of type [org.springframework.boot.autoconfigure.cache.CacheProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Bean 'net.dreamlu.mica.redis.config.RedisCacheManagerConfig' of type [net.dreamlu.mica.redis.config.RedisCacheManagerConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Bean 'cacheManagerCustomizers' of type [org.springframework.boot.autoconfigure.cache.CacheManagerCustomizers] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Bean 'net.dreamlu.mica.redis.config.MicaRedisCacheAutoConfiguration' of type [net.dreamlu.mica.redis.config.MicaRedisCacheAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Bean 'cacheResolver' of type [net.dreamlu.mica.redis.config.RedisAutoCacheManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Bean 'redisMessageListenerContainer' of type [org.springframework.data.redis.listener.RedisMessageListenerContainer] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

评论 (4)

FFZ 创建了任务
FFZ 修改了描述
展开全部操作日志

启动异常???还是 warn 信息???RedisPubSubConfiguration 作为配置类不需要被动态代理。

2023-12-26 14:57:06.189 INFO 3772 --- [ main] trationDelegate$BeanPostProcessorChecker 376 : Bean 'net.dreamlu.mica.redis.config.RedisPubSubConfiguration' of type [net.dreamlu.mica.redis.config.RedisPubSubConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

info 日志可以忽略,只是个提示。

这在3.2.x中应该已经变为warn信息:

相关issue及fix

To avoid warnings during post processing declare the bean as infrastructure bean.

TODO:

  • 增加@Role(BeanDefinition.ROLE_INFRASTRUCTURE)注解

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(3)
372 dreamlu 1578913784
Java
1
https://gitee.com/596392912/mica.git
git@gitee.com:596392912/mica.git
596392912
mica
mica

搜索帮助