Spring Cache @Cacheable - not working while calling from another method of the same bean

后端 未结 9 1505
执念已碎
执念已碎 2020-11-27 10:06

Spring cache is not working when calling cached method from another method of the same bean.

Here is an example to explain my problem in clear way.<

9条回答
  •  猫巷女王i
    2020-11-27 11:08

    Use static weaving to create proxy around your bean. In this case even 'internal' methods would work correctly

提交回复
热议问题