摘要:
方法一 使用JDK中Annotation注解包 // 作用在实体类上 @JsonInclude(JsonInclude.Include.NON_NULL) 方法二 添加Hutool工具包依赖 <!--hutool工具类--> <dependency> <groupId>cn.hutool</grou
阅读全文
posted @ 2021-03-03 09:19
(Play)
阅读(630)
推荐(0)
摘要:
创建父实体类 package com.example.demo.pojo; public class BaseCompanyDto { // 表名 private String tableName; // 关联的表名 private String partTableName; } 普通实体类继承 p
阅读全文
posted @ 2021-03-02 17:32
(Play)
阅读(775)
推荐(0)
摘要:
示例代码 如下 <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>two</title> <script> console.group("one pass"); function funIDcard(){ va
阅读全文
posted @ 2021-03-01 17:22
(Play)
阅读(108)
推荐(0)
摘要:
Tomcat启动监听器被其他程序占用 示例 错误启动TOMCAT时: 代理抛出异常错误: java.rmi.server.ExportException: Port already in use: 1099; nested exception is: java.net.BindException:
阅读全文
posted @ 2021-03-01 15:19
(Play)
阅读(1411)
推荐(0)
摘要:
setting-》搜索 inspections-》点击inspections-》General-》Duplicated code fragment 取消勾选。完美解决。
阅读全文
posted @ 2021-02-25 09:51
(Play)
阅读(147)
推荐(0)
摘要:
git 远程仓库无权限 下午 15:05 Push failed RPC failed; HTTP 403 curl 18 transfer closed with 22 bytes remaining to read the remote end hung up unexpectedly git
阅读全文
posted @ 2021-02-24 15:17
(Play)
阅读(92)
推荐(0)
摘要:
详细测试结论如下 isEmpty 》会把空格当成元素 isBlank 》相反 class Test001 { static void t01() { String A = " "; String B = ""; String C = null; // 长度 System.out.println(A.
阅读全文
posted @ 2021-02-23 11:20
(Play)
阅读(111)
推荐(0)
摘要:
示例代码 字符串转换数字类型转换错误。 不能把"0.9"转成Integer. 因为双精度的数字不能转成Integer, 因为正数才可以转成Integer。 错误示例
阅读全文
posted @ 2021-02-20 16:38
(Play)
阅读(198)
推荐(0)
摘要:
示例代码 public class Company { public static void main(String[] args) { // 示例, 支持0.2开头 String currentVoltage = "20.014"; // 转换双精度 int totalFee1 = (int) (
阅读全文
posted @ 2021-02-20 16:30
(Play)
阅读(2740)
推荐(0)
摘要:
如下代码 import java.util.Collections; import java.util.List; import java.util.ArrayList; import java.util.Comparator; public class Java8Tester { public s
阅读全文
posted @ 2021-02-18 14:51
(Play)
阅读(1114)
推荐(0)