Comments (4)
starter是通过jetcache-autoconfigure/src/main/resources/META-INF下面的配置文件找到JetCacheAutoConfiguration的,不同的spring版本要的文件不一样,你自己看一下吧
你也可以不用starter,看下文档
from jetcache.
大佬我可能没有描述清楚,我是要自己做一个自定义的【my-starter-jetcache】,这样其他项目只要引入我的start包就有jetcache的功能了,不用再配配置文件了,不是您的jetcache-starter包,类似于下边这个项目
from jetcache.
我不能帮你做这个,但是在2楼我已经告诉你要点了,有两种办法。
用类似starter的方式参考jetcache-autoconfigure;或者不用starter的方式自己组装配置,参考下文档里面的“快速入门”。
from jetcache.
我自己封装了【my-starter-jetcache】
问题是【my-starter-jetcache】配置的yml文件 jetcacheAutoconfigure获取不到,导致jetcache没有正确初始化无法使用
快速入门是每个spring boot项目配置到application.yml中,这么配是没有问题的
from jetcache.
Related Issues (20)
- api模式下 key过期时间配置
- @Cached注解使用key SpEL表达式,注解作用在接口上时失效。 HOT 9
- 请求一下,使用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
- 如何防止一级缓存穿透到二级缓存的呢? HOT 2
- jetcache(RedisLettuceCache) GET error HOT 3
- 报错jedis问题,不能使用lettuce吗? HOT 3
- 密码校验失败情况:Illegal character in authority at index 8: redis://r0&2o7^[email protected]:6379 HOT 1
- 在单元测试时,遇到无法更新缓存、删除缓存情况出现,想了解是什么原因? HOT 6
- cacheType指定了BOTH或者REMOTE时,不配置jetcache.remote再调用缓存方法能否不影响主业务 HOT 1
- 項目部署N+個時CacheInvalidate不生效
- 注解类型支持 HOT 5
- Error creating bean with name 'redissonAutoInit' defined in class path resource HOT 2
- CacheValueHolder类为何要使用final修饰?使用jackson某些情况下可能无法序列化和反序列化 HOT 1
- 代码中使用太多Lock了,高并发系统经常死锁 HOT 1
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.