spring boot - @EnableCaching affecting other service and repos - Stack Overflow

Enabling caching in spring-boot application disables @Autowiring and affecting my other configuration c

Enabling caching in spring-boot application disables @Autowiring and affecting my other configuration classes which ends up in NPE

After using @EnableCaching in my springboot application my other service beans conflicting. The API's which has been working before was failing due to this @EnableCaching. DatabaseSequence counter = mongoOperations.findAndModify(query(where("_id").is(seqName)), new Update().inc("seq",1), options().returnNew(true).upsert(true), DatabaseSequence.class); return !Objects.isNull(counter) ? counter.getSeq() : 1; This query has worked before but now throws null pointer >none of my queries is working after the @EnableCache.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745106052a4611561.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信