0
点赞
收藏
分享

微信扫一扫

JAVA8中接口的一些新用法(springboot环境)

攻城狮Chova 2022-08-18 阅读 24

@Configuration
public interface IAbstractConvertStrategy {



CacheService getCacheService();


default boolean existedMedia(String uuid)
{
//重复的解析请求,丢弃
return getCacheService().hasKey(uuid);
}

static void staticMethod() {

}
}

 

举报

相关推荐

0 条评论