- 博客(8)
- 收藏
- 关注
原创 【MyBatisPlus】 IService和BaseMapper使用手册
IService 注释 BaseMapper 注释 进一步封装:采用 get 查询单行, remove 删除, list 查询集合, page 分页 DDML boolean save(T entity); 选择字段,策略插入 int insert(T entity); 插入一条记录 boolean saveBatch(Collection entityList); 批量插入 ...
2020-12-05 20:34:50
3324
原创 【JavaSE】Java中hashCode和identityHashCode的区别你知道吗?
hashCode关于hashCode参考之前的文章,点击参考之前文章。identityHashCodeidentityHashCode是System里面提供的本地方法,java.lang.System#identityHashCode。/** * Returns the same hash code for the given object as * would be returned by the default method hashCode(), * whether or not the
2020-11-13 20:18:12
99
原创 【JavaSE】Java中hashCode到底有什么用?
hashCode概念hashCode是jdk根据对象的地址算出来的一个int数字,即对象的哈希码值,代表了该对象在内存中的存储位置。我们都知道hashCode()方法是顶级类Object类的提供的一个方法,所有的类都可以进行对hashCode方法重写。我们也知道在比较一个类是否相同时往往会重写equals方法,值得注意的是,重写equals方法的同时必须也要重写hashCode方法,多次调用一个对象的hashCode方法必须返回同一个数字,这也是必须遵守的规范,不然会造必须存在的危害。hash冲突
2020-11-13 20:14:42
245
原创 【JavaSE】Java中一个指定日期加上指定天数得到新日期
package com.test.util;import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Date;public class TestTime { public static void main(String args[])throws ParseException{ SimpleDateFormat dateFormat = new SimpleDat
2020-11-06 17:47:58
654
2
原创 【JavaSE】Java数据类型和MySql数据类型对应一览
java类mysql数据库java.lang.BytebyteTINYINTjava.lang.ShortshortSMALLINTjava.lang.IntegerintegerINGEGERjava.lang.LonglongBIGINTjava.lang.FloatfloatFLOATjava.lang.DoubledoubleDOUBLEjava.lang.BigDecimalbig_decimalNUMERIC...
2020-11-06 13:02:08
107
原创 【Vue】Vue ElementUI中el-date-picker生成时间戳
加上value-format=“timestamp”<el-date-picker v-model="dioData.reqDate" placeholder="网约时间" value-format="timestamp" dateType="time"></el-date-picker>
2020-11-06 12:52:39
6354
原创 【SpringBoot】在上传数据时报JSON parse error: Can not deserialize value of type java.util.Date from String
问题描述:由客户端上传的json数据中Date字段格式为“2018-10-25 15:58:31”,测试调用时报如下错误:org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Can not deserialize value of type java.util.Date from String "2018-10-25 15:58:31": not a valid repres
2020-11-05 17:13:02
331
原创 【Vue】Vue ElementUI中el-table表格表头和表格内容都水平居中
表头水平居中<template> <el-table :data="tableData" style="width: 100%" :header-cell-style="{textAlign: 'center'}"> <el-table-column prop="date" label="日期" width="180"> </el-table-column> </el-table>
2020-11-01 20:17:19
4617
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人