JAVA8中接口的一些新用法(springboot环境)时间:2023-03-09 17:32:28 @Configuration public interface IAbstractConvertStrategy { CacheService getCacheService(); default boolean existedMedia(String uuid) { //重复的解析请求,丢弃 return getCacheService().hasKey(uuid); } static void staticMethod() { } }