自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 收藏
  • 关注

原创 JSR303 参数校验

Springboot集成JSR303参数校验的方法实现

2022-07-29 15:06:09 115 1

原创 Canal

Canal

2022-06-29 10:40:40 352

原创 CentOS7安装 MySQL

在CentOS中默认安装有MariaDB,这个是MySQL的分支,但为了需要,还是要在系统中安装MySQL,而且安装完成之后可以直接覆盖掉MariaDB。1 下载并安装MySQL官方的 Yum Repository,Mysql版本5.7.14[root@localhost ~]# wget mysql57-community-release-el7-10.noarch.rpm使用上面的命令就直接下载了安装用的Yum Repository,大概25KB的样子,然后就可以直接yum安装了。[root@

2022-06-29 08:50:54 70

原创 前端vue string转换 long类型报错

前端vue string转换 long类型报错

2022-06-18 15:19:13 4009

原创 springboot 阿里云oss服务文件上传

阿里云oss服务文件上传

2022-06-18 14:45:50 133

原创 springboot 微信登入

springboot 微信登入

2022-06-18 14:43:21 232

原创 springboot 使用阿里云短信服务

springboot 使用阿里云短信服务

2022-06-18 14:26:13 258

原创 springboot集成mybatis-generator插件

springboot集成mybatis-generator插件

2022-06-18 14:01:30 148

原创 java使用EasyExcel

java使用EasyExcel

2022-06-18 14:00:08 1278

原创 springboot整合redis

springboot整合redis

2022-06-18 13:59:22 44

原创 JwtUtils工具类

JwtUtils工具类

2022-06-18 13:58:32 134

原创 数据库基础

查询语句:select * from 表名查询加去重:select distinct 字段名 from 表插入语句:insert into 表名(字段名…)values(数值…)update 表名set 字段=字段值 where 字段=字段值delete from表名 where 字段=字段数值...

2022-02-16 08:50:34 357

原创 java生成二维码

public static void main(String[] args)throws WriterException, IOException { QRCodeWriter qrCodeWriter = new QRCodeWriter(); Map x=new Hashtable(); x.put(EncodeHintType.CHARACTER_SET, "utf-8");//设置字符集 BitMatrix bitMatrix

2022-02-07 16:27:17 252

原创 java对象根据属性排序

方法一:将要排序的对象类实现Comparable<>接口。class Student implements Comparable<Student>{ String name; int age; int score; public Student(String name, int age,int score) { this.name = name; this.age = age; this.score = score; }

2022-01-12 10:26:10 1568

原创 Java计算两个经纬度间的距离方式

数据库guid varchardept_id varcharcreatetime timestamp//时间戳mapper.xml<result column="createtime" property="createtime" jdbcType="TIMESTAMP"/>javaBean@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")private Date create

2022-01-11 15:08:34 187

原创 MyBatis包含的jdbcType类型和java中对应的数据类型

<resultMap id="给ID名" type="实体类" ><result column="数据库字段名" property="实体类属性" jdbcType="数据库字段类型" /></resultMap>Mybatis中javaType和jdbcType对应和CRUD例子<resultMap type="java.util.Map" id="resultjcm"> <result property="FLD_NUMBER" c

2022-01-11 09:29:08 296

原创 改数据库密码mysql

方法1:用UPDATE直接编辑user表mysql> use mysql;mysql> update user set password=password(‘123’) where user=‘root’ and host=‘localhost’;mysql> flush privileges;方法2:忘记root密码时以windows为例:关闭正在运行的MySQL服务。打开DOS窗口,转到mysql\bin目录。输入mysqld --skip-grant-ta

2022-01-10 15:43:53 34

原创 别人链接你 mysql数据库

1.打开cmd运行mysql2.use mysql所有人以root 名 以abc为密码访问我的mysql3.grant all privileges on . to root@"%" identified by ‘abc’ with grant option4.flush privileges

2022-01-10 15:42:27 345

原创 获取当前日期到第几天日期星期几

public class date { public static void main(String[] args) { datebean test=new datebean(); Map<String,String> map=new HashMap<>(); for (int i = 0; i <7; i++) { Calendar calendar = Calendar.getInstanc

2022-01-08 17:39:35 130

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除