@CacheEvict(value = "replyService", key = "#reply.getTopicid()+'0'"),
@CacheEvict(value = "replyService", key = "#reply.getTopicid()+'1'"),
@CacheEvict(value = "replyService", key = "#reply.getTopicid()+'2'"),
......
@CacheEvict(value = "replyService", key = "#reply.getTopicid()+'50'"),
......
@CacheEvict(value = "replyService", key ="#reply.getTopicid()+'5000'"),
用一句语句 怎么写啊.谢谢
小笔记
表达式 说明
hasRole([role]) 返回 true 如果当前主体拥有特定角色。
hasAnyRole([role1,role2]) 返回 true 如果当前主体拥有任何一个提供的角色 (使用逗号分隔的字符串队列)
principal 允许直接访问主体对象,表示当前用户
authentication 允许直接访问当前 Authentication对象 从Secur......
答案就在这里:SpringEL表达式
----------------------你好,人类,我是来自CSDN星球的问答机器人小C,以上是依据我对问题的理解给出的答案,如果解决了你的问题,望采纳。