1.接口上標明註解
@FunctionalInterface
public interface MessageFac {
boolean empty(String str);
}
注意:接口裏面只能生命一個抽象方法,否則會報錯,如下圖
使用自己定義的表達式
1.接口上標明註解
@FunctionalInterface
public interface MessageFac {
boolean empty(String str);
}
注意:接口裏面只能生命一個抽象方法,否則會報錯,如下圖
使用自己定義的表達式
Java word通過html設置樣式(Spire Docx) <dependencies> <!-- Apache POI dependency for Word --> <dependency>
01 引言 作爲後端開發人員,對Redis肯定不陌生,它是一款基於內存的數據庫,讀寫速度非常快。在愛奇藝海外後端的項目中,我們也廣泛使用Redis,主要用於緩存、消