摘要: 问题 在mybatis-plus中使用IPage作为分页功能实现,请求发现并没有实现分页功能。 部分代码 ## controller @PostMapping("/getCollege") @ApiOperation("查询学院信息") public CommonResult<IPage<ZgdCo 阅读全文
posted @ 2024-04-16 10:30 邹笑傲 阅读(491) 评论(0) 推荐(0) 编辑
摘要: 下载 https://dev.mysql.com/downloads/mysql/ 选择下载简单版本即可 安装 1. 解压 将下载下来的安装包进行解压 2. mysql初始化 用cmd进入的mysql的解压包的bin目录里,执行初始化命令 mysqld --initialize --console 阅读全文
posted @ 2024-04-15 16:55 邹笑傲 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 基础环境 springboot 2.5.3 mysql 8.0.22 fastjson2 2.0.38 主要配置 1. 返回VO字段添加注解 @ApiModelProperty("字段内容") @TableField(typeHandler = JacksonTypeHandler.class) p 阅读全文
posted @ 2023-12-04 13:09 邹笑傲 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 一、准备工作 引入基础的springboot环境 引入freemark依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-freemarker</artifactId> 阅读全文
posted @ 2023-10-23 10:39 邹笑傲 阅读(219) 评论(0) 推荐(0) 编辑
摘要: ## 问题1 ### 环境 springboot+mybatis-plus 在controller层一个request中有多个service调用保存接口,发现在mapper层上定义的@DS注解指定数据源部分指向了primary数据源。导致表找不到。 ### 处理 猜测是不能走mybatis-plus 阅读全文
posted @ 2023-08-04 10:16 邹笑傲 阅读(1099) 评论(0) 推荐(0) 编辑
摘要: ### 1、 新建异常处理枚举类 ```java package com.luwang.iot.common.exception; public enum ExceptionEnum { // 数据操作错误定义 SUCCESS("200", "成功!"), BODY_NOT_MATCH("400", 阅读全文
posted @ 2023-08-04 09:51 邹笑傲 阅读(8) 评论(0) 推荐(0) 编辑
摘要: # Windows环境 ## 安装ffmpeg ###下载地址:https://github.com/BtbN/FFmpeg-Builds/releases ###安装:下载对应系统安装包,解压缩。 ###配置环境:在环境变量的path中添加ffmpeg的bin目录路径 D:\ware\ffmpeg 阅读全文
posted @ 2023-06-25 16:04 邹笑傲 阅读(1397) 评论(0) 推荐(0) 编辑
摘要: 服务模块 pom.xml文件引入依赖 ####基于SpringBoot版本 <2.5.3> <dependency> <groupId>io.micrometer</groupId> <artifactId>micrometer-registry-prometheus</artifactId> <v 阅读全文
posted @ 2023-04-03 17:31 邹笑傲 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 错误信息 问题原因 tomcat高版本严格按照RFC 3986规范解析地址。该规范只允许包含 a-zA-Z 0-9 - _ . ~ 以及所有保留字符 ! * ’ ( ) ; : @ & = + $ , / ? # [ ] url中有中文。 解决方法 对中文字段进行 URLEncoder.encode 阅读全文
posted @ 2023-03-17 14:27 邹笑傲 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 写在开头 基础环境 jdk1.8+maven3.8.5。 为了简单起见,省略从表中查询数据,直接从dao返回用户权限数据。 引入依赖 <!-- springboot--> <dependency> <groupId>org.springframework.boot</groupId> <artifa 阅读全文
posted @ 2023-02-09 14:24 邹笑傲 阅读(133) 评论(0) 推荐(0) 编辑