![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
SinvanChong
这个作者很懒,什么都没留下…
展开
-
@Cacheable Null key returned for cache异常的解决方法
@Override@Cacheable(cacheManager = "redis1DayCacheManager", cacheNames = "panda:user:reserve", key = "#userId", unless = "#result == null") public boolean hasReserve(Integer userId) { ...}网上有些说把参数改成p0或a0,我试了都不行;最后在注解里加了个条件condition,成功@Override@原创 2021-01-26 14:21:36 · 2803 阅读 · 3 评论 -
spring循环问题求问
有以下依赖关系:company和wechat相互依赖company和send相互依赖msg和sms相互依赖msg依赖send上述情况会报错:sms创建失败,因为依赖msgmsg创建失败,因为依赖sendsend创建失败,Error creating bean with name ‘send’: Bean with name ‘send’ has been injected into other beans [company] in its raw version as part of a c原创 2020-12-16 10:15:49 · 192 阅读 · 0 评论 -
@value读取不到数据库配置文件里的值的解决办法
用@value注解的时候遇到过两次问题,下面说一下两次的解决思路原创 2017-12-14 11:43:35 · 9660 阅读 · 0 评论