自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 java如何读取txt文件的内容

@RequestMapping("/upload")public String upload(@RequestParam("file")MultipartFile file){ return file.getOriginalFilename();}@RequestMapping("/uploadBytext")public String uploadBytext (@RequestParam("fileText")MultipartFile fileText) throws IOExce.

2022-02-27 14:23:54 442

原创 excel的读和写

导入这个依赖<dependency> <groupId>com.alibaba</groupId> <artifactId>easyexcel</artifactId> <version>3.0.5</version></dependency>参考这个网址读Excel · 语雀 (yuque.com)https://www.yuque.com/easyexcel/.

2022-02-27 14:22:18 132

原创 springboot mybatis整合 yml配置

spring: datasource: url: jdbc:mysql://localhost:3306/mysql02?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false username: root password: 123456 driver-class-name: com.mysql.cj.jdbc.Drivermybatis: ma...

2022-02-27 10:48:43 1201

原创 Spring initializr

Spring initializr是Spring官方提供的一个很好的工具,用来初始化一个Spring boot的项目

2022-02-25 07:46:36 436

原创 2021-10-19

长忘记用的两个注解:主键定义@TableId(value = "dict_Code",type = IdType.AUTO)private Integer dictCode;模糊查询注解@TableField(value = "dict_label",condition = SqlCondition.LIKE)

2021-10-19 23:13:06 82

原创 在idea配置连接MYSQL会出现错误 Server returns incalid tumezone。明明是写对的,他却报错,看图

明明账号 密码 和库名都是对的错误信息如上所述,有一个非常简单的解决方式就是在URL那行添上一句话URL :jdbc:mysql://localhost:3306/hutubill?useSSL=false&serverTimezone=Hongkong&characterEncoding=utf-8&autoReconnect=true再按一下Test Connection 检测一下假如有一...

2021-07-31 23:24:01 125

原创 idea导入jar的常用方法

idea导入jar的常用方法常用的方法都是 顺序路径 :File-> project structure -> Moubles -> Dependencies选择File最后选择右边的小加号,跳出三个选择,选择1或2都可,jar包就导入结束...

2021-07-29 17:29:52 79

空空如也

空空如也

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

TA关注的人

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