工具使用
weixin_43867432
这个作者很懒,什么都没留下…
展开
-
设置滚动条
.vm-body { display: flex; justify-content: space-between; flex-wrap: wrap; position: relative; width: 94%; height: 90%; margin-left: 3%; align-content: space-between; z-index: 100; overflow-y: scroll; overflow-x: hidden;}.vm-body::-原创 2021-07-07 15:04:34 · 220 阅读 · 0 评论 -
SpringBoot 整合Redis 基本使用
1. SpringBoot 整合 Redis 简介1.1 在SpringBoot 2.x 版本 Jedis 被替换为了 lettuce1.2 Jedis: 采用的直连方式 多线程操作是不安全的 避免这个问题 使用 Jedis ool 连接池1.3 lettuce: 采用netty , 实例可以在多个线程中共享 不存在不安全的情况 可以减少线程数据2. 开始测试2.1 导入依赖2.2 开始配置 <dependency> <groupId&g原创 2021-01-12 17:37:27 · 46 阅读 · 0 评论 -
[记录] jackson的使用
配置文件 jackson: date-format: yyyy-MM-dd HH:mm:ss time-zone: GMT+8 # 如果实体类字段为空加上这个配置可以在返回的时候忽略 #需要在实体类字段加上注解 # @JsonInclude(JsonInclude.Include.NON_NULL) default-property-inclusion: non_null...原创 2020-11-05 15:41:54 · 31 阅读 · 0 评论 -
[记录] java 验证码生成工具 EasyCaptcha
依赖<dependencies> <dependency> <groupId>com.github.whvcse</groupId> <artifactId>easy-captcha</artifactId> <version>1.6.2</version> </dependency></dependencies>使用方法2.原创 2020-10-30 11:31:48 · 334 阅读 · 0 评论 -
[学习] Mybatis-Plus Generator代码生成器
添加依赖 <!-- Mybatis-Plus依赖 --> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus</artifactId> <version>3.4.0</version> </depe.原创 2020-10-29 16:09:19 · 81 阅读 · 0 评论 -
[记录] P6spy 记录sql执行时间和sql语句 SpringBoot+Mybatis-Plus+P6Spy
配置固定 记录防止忘记依赖 <!-- sql 性能打印 --> <dependency> <groupId>p6spy</groupId> <artifactId>p6spy</artifactId> <version>3.8.1</version> </dependency>原创 2020-10-29 15:51:49 · 553 阅读 · 1 评论 -
[学习] SpringBoot 定时器
在SpringBoot启动类上 加入注解 @EnableScheduling在定时器任务的方法上加上注解 @Scheduled(fixedRate = 5000)如果该类未被Spring管理 那么需要加上@Component 才能被@ComponentScan(basePackages = “”) 扫描到 @Scheduled参数描述 - @Scheduled(fixedRate=3000):上一次开始执行时间点后3秒再次执行; - @Scheduled(fixedDelay=3000):上.原创 2020-10-28 15:33:19 · 201 阅读 · 0 评论 -
Swagger的使用 附带某些异常解决 [学习]
依赖 <!--swagger--> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version> </dependenc.原创 2020-10-28 11:06:43 · 247 阅读 · 0 评论 -
【学习】 后端工具使用之easyExcel得简单使用
解析excel的工具有: poi jxl easyExcelpoi 和jxl 内存消耗严重 easyExcel给poi做了封装优化官方网站: https://www.yuque.com/easyexcel/doc/easyexcel写操作// 引入依赖 /** 1. 因为是poi优化来的 所以需要引入 poi的依赖 <dependency> <groupId>org.apache.poi</groupId>.原创 2020-10-12 19:20:40 · 157 阅读 · 0 评论 -
Idea Spring没有补全或者不显示小绿叶
没有将resources设置为 ResourcesRoot 解决方法 右键文件夹 Mark Directory as 设置为 ResourcesRoot没有创建启动类 解决方案 创建启动类没有将项目给Spring管理 解决方案 右键项目 选择 Project Structure 点击加号将项目给Spring管理 如果还是不行点击箭头位置手动添加没有安装插件 解决方案 安装如下插件 重启Idea以上就是我遇到过的情况 希望对大家有帮助...原创 2020-09-07 17:22:16 · 3309 阅读 · 0 评论