@Configuration
public interface IAbstractConvertStrategy {
CacheService getCacheService();
default boolean existedMedia(String uuid)
{
//重复的解析请求,丢弃
return getCacheService().hasKey(uuid);
}
static void staticMethod() {
}
}
JAVA8中接口的一些新用法(springboot环境)
阅读 24
2022-08-18
@Configuration
public interface IAbstractConvertStrategy {
CacheService getCacheService();
default boolean existedMedia(String uuid)
{
//重复的解析请求,丢弃
return getCacheService().hasKey(uuid);
}
static void staticMethod() {
}
}
相关推荐
精彩评论(0)