濤。

t.

2025年4月16日

maven 打包报错 this version of the Java Runtime only recognizes class file versions up to 55.0

摘要: 报错信息: org/springframework/boot/maven/RepackageMojo has been compiled by a more recent version of the Java Runtime (class file version 61.0), this vers 阅读全文

posted @ 2025-04-16 17:36 濤。 阅读(111) 评论(0) 推荐(0)

java实体注解null不显示

摘要: 使用@JsonInclude(JsonInclude.Include.NON_NULL)注解在类级别上,这样,所有为null的字段将不会被序列化。 import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Data; @Js 阅读全文

posted @ 2025-04-16 17:35 濤。 阅读(44) 评论(0) 推荐(0)

Java的String左侧补0以及左侧删0

摘要: 一、String左侧补0 int number = 1; // 0 代表前面补充0 // 5代表长度为5 // d 代表参数为正数型 String str = String.format("%05d", number); 二、String左侧删0 方式一 replaceAll(String rege 阅读全文

posted @ 2025-04-16 17:35 濤。 阅读(312) 评论(0) 推荐(0)

Mybatis-Plus修改某个字段的值为null的入参

摘要: 在该实体类属性上添加注解 @TableField(updateStrategy = FieldStrategy.IGNORED) 阅读全文

posted @ 2025-04-16 17:32 濤。 阅读(78) 评论(0) 推荐(0)

导航