Comments (9)
我猜你的接口做javac编译的时候没有指定-parameters参数
from jetcache.
我猜你的接口做javac编译的时候没有指定-parameters参数
被你说中了,是没加。但@cached作用在实现类上是可以的,是不是作用在实现类上就不用加-parameters参数了。
from jetcache.
注解在接口上或者在类上都可以,但都需要-parameters参数,否则你编译出来的class文件里面没有参数名称,就无法工作了。
from jetcache.
注解在接口上或者在类上都可以,但都需要-parameters参数,否则你编译出来的class文件里面没有参数名称,就无法工作了。
我没加-parameters 时,如果注解作用在实现类上,缓存是正常工作的。只是加在接口上时无法生效。
from jetcache.
你的接口和实现类编译设置不一样吧,或者行参名称也可以不一样
from jetcache.
你的接口和实现类编译设置不一样吧,或者行参名称也可以不一样
一样的,我只是把注解挪了一个地方。其他没有任何改动。参数名称也是一样。
from jetcache.
那你得给出一个可以重现的案例了,要完整的,可运行的
from jetcache.
那你得给出一个可以重现的案例了,要完整的,可运行的
就是上面开头的例子,我在本地idea中运行,只要把注解从接口换到实现类,就能走缓存,命中缓存。
from jetcache.
那好吧,我认为没有问题。这个讨论就此结束了。
from jetcache.
Related Issues (20)
- 当redis某个节点发生故障无法连接,导致项目无法启动
- 希望可以支持r2dbc,可以支持Reactor缓存
- spring项目引入jetcache启动报错 HOT 2
- 如何通过redis.lettuce连接带证书的redis?(redis非集群,HA模式的) HOT 1
- 反序列化异常 HOT 1
- redisson缓存通知,是否有规划增加redis stream方式 HOT 1
- 缓存一致性问题 HOT 1
- JedisCluster Pipeline 的支持? HOT 13
- @Cached、@CacheUpdate中的key、value是否像postCondition 、condition可以使用SpEL访问到#result对象? HOT 4
- Cached是否可以一次设置多个key? HOT 2
- AbstractCacheTest.penetrationProtectTest flaky
- api模式下 key过期时间配置
- 请求一下,使用LinkedHashMap的方法存储本地缓存不失效,并且在使用清除本地缓存方法中,写锁没有释放 HOT 8
- 如何自定义 RedisCache ? HOT 1
- 高并发下,出现OOM以及其他异常 HOT 2
- 高并发下,出现OOM以及其他异常 HOT 1
- 关于本地缓存数据容量统计
- com.esotericsoftware.kryo.KryoException: Encountered unregistered class ID:
- jetcache(RedisLettuceCache) GET error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jetcache.