TO DO
lombook
@Data = https://projectlombok.org/features/Data
@NoArgsConstructor, @RequiredArgsConstructor, @AllArgsConstructor = https://projectlombok.org/features/constructor
| 名稱 | 參數 | @NonNull | 其他說明 |
|---|---|---|---|
| @NoArgsConstructor | 無參數 | 無效 | 主要配合@Data或其他構造方法注解使用 |
| @RequiredArgsConstructor | All non-initialized final fields get a parameter, as well as any fields that are marked as @NonNull that aren't initialized where they are declared. | 有效 | 包含在@Data中,構造方法作用域為private |
| @AllArgsConstructor | 所有參數 | 有效 |
Jackson
現象:xAxis屬性在Json序列化時被解析為xaxis
原因:
jackson默認的字段屬性發現規則如下:所有被public修飾的成員變量->所有被public修飾的getter->所有被public修飾的setter。
entity中成員變量一般都是private的,xAxis的getter/setter方法為getXAxis/setXAxis,不符合駝峰命名
解決辦法一:
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY, getterVisibility = JsonAutoDetect.Visibility.NONE)
修改字段發現規則 - fieldVisibility為ANY,getterVisibility為NONE
https://www.jianshu.com/p/855654b3b68c
http://www.rzrgm.cn/hbbbs/articles/8405719.html
解決辦法二:
@JsonProperty(value = "xAxis")
這個方法功能更強大,可以修改為完全不同名稱
@JsonInclude(JsonInclude.Include.NON_NULL)
實體類與Json互轉的時候 屬性值為null的不參與序列化
https://www.baeldung.com/jackson-ignore-null-fields
@Accessors(chain = true)
使用chain屬性,setter方法返回當前對象,和@Builder注解作用不同。
https://www.jianshu.com/p/784732369d46
@JsonSerialize
類上
@Entity
@Table(name = "ting_analysis_cluster_ip")
@Table(name = "ting_analysis_ip_util_month_30",
indexes = {@Index(name = "idx_memory_util_max", columnList = "memory_util_max"),
@Index(name = "idx_memory_util_avg", columnList = "memory_util_avg")})
字段上
@Column(nullable = false,length = 255)
// 在LIKE方法中,如果root.get方法獲取的屬性類型不是String,則需要進行類型轉換。
Predicate ipLike = criteriaBuilder.like(root.get("ip").as(String.class), pattern);
Predicate ipIn = root.get("ip").in(collect);
Optional.map()
Optional.flatMap()
Collectors.joining()
Collectors.groupingBy()
Collectors.toMap()
Collectors.summingDouble()
Collectors.collectingAndThen()
.sorted(Collator.getInstance(Locale.CHINA))
.sorted(Map.Entry.comparingByValue(Comparator.reverseOrder()))
.filter(Objects::nonNull)
.reduce()
.forEach()
.peek()
Comparator.comparing()
Comparator.comparing(Employee::getAge).thenComparing(Employee::getName)
Map.Entry.comparingByValue()
SimpleDateFormat/DateTimeFormatter
CollectionUtils.isEmpty()
StringUtils.isEmpty()
temporal 當時的;
instant adj. 立即的;緊急的;緊迫的 n. 瞬間;立即;片刻
@EnableWebSecurity
@PostAuthorize
模式1:
MySQL + 離線計算
模式2:
純ClickHouse + 緩存
模式1.5:
ClickHouse + 離線計算(Python計算)
可能存在的模式1.7:
ClickHouse + 表引擎、物化視圖
數據維度 -- 靜態/動態
數據質量 -- 數據完整度
數據治理 -- 可用性(完整度、覆蓋度,包含時間/空間、準確性)
第一天:上午開會, 短會 + 前后端會議
整個稱為ArrayList
整個ArrayList
ArrayList稱為原始類型。
ArrayList
ArrayList
5、阿里巴巴Java開發手冊 - “強制”部分
6、專利部分
7、jmeter工作
8、Spring Boot Actuator 健康檢查 審計 統計 監控
功勞 苦勞 敬業 正常 無作為
貢獻 創新 思考 核心
信用卡 8.572 x 5.403
倍思100W 2C2A 210g:
8.549 x 5.439 x 3.028
倍思120W 2C1A 217.4g:
9.398 x 5.533 x 3.046
努比亞120W 2C1A 凈重232g:
8.685 x 5.635 x 3.136
1.15.2 go版本
Java for Selenium

浙公網安備 33010602011771號