@Configuration public interface IAbstractConvertStrategy { CacheService getCacheService(); default boolean existedMedia(String uuid) { //重复的解析请求,丢弃 return getCacheService().hasKey(uuid); } static void staticMethod() { } }
原文:https://www.cnblogs.com/passedbylove/p/11842832.html