SpringBoot-MyBatisPlus
文章平均质量分 52
小白的小,小白的白
碌碌谋生,谋其所爱;生而热枕,终也欢洽
展开
-
常见的加密方式
常见的加密方式package com.seat.common.util;import org.apache.commons.codec.binary.Base64;import org.springframework.util.DigestUtils;import javax.crypto.Cipher;import javax.crypto.SecretKey;import javax.crypto.SecretKeyFactory;import javax.crypto.spec.DES原创 2022-04-08 00:23:09 · 145 阅读 · 0 评论 -
this is incompatible with sql_mode=only_full_group_by mysql GROUP BY无法生效
Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column ‘XXXX’ which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by在做分页的时候遇到了一个mysql版本问题;在mysql版本5.7以上使用gr原创 2021-09-22 11:34:05 · 206 阅读 · 0 评论 -
SpringBoot定时任务
SpringBoot定时任务在日常开发中我们会遇到让某个sql在某个固定的时间去执行,这个时候就可以用到定时任务类了注解:@EnableScheduling开启定时任务写在启动类的注解@Component注册组件写在你定时任务类上@Scheduled做定时任务写在定时任务方法上在这里写贴一下代码在SpringBoot上使用注解@EnableScheduling 开启定时任务import org.springframework.boot.SpringAppl原创 2021-08-26 09:23:30 · 187 阅读 · 0 评论 -
SpringBoot快速集成MyBatis-plus---(第一篇)
SpringBoot整合Mybatis-plus1.创建项目首先我们需要创建一个SpringBoot创建,我使用的是maven构建SpringBoot项目.在这里我们就不贴图了2.导入SpringBoot以及其他的依赖<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId&原创 2021-08-21 14:55:54 · 417 阅读 · 7 评论 -
SpringBoot快速集成MyBatis-plus---(第二篇)
今天我们主要讲在实际开发中所用到的一些方法,不知道怎么整合的可以看我上一篇博客https://blog.csdn.net/qq_45798917/article/details/119839578?spm=1001.2014.3001.5501最终目录结构整合Swagger文档 引入坐标依赖<!--swagger--> <dependency> <groupId>io.springfox</groupId>原创 2021-08-23 13:53:29 · 349 阅读 · 2 评论