会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
邹笑傲
博客园
首页
新随笔
联系
订阅
管理
2024年4月16日
Mybatis-Plus 使用IPage分页失效问题处理
摘要: 问题 在mybatis-plus中使用IPage作为分页功能实现,请求发现并没有实现分页功能。 部分代码 ## controller @PostMapping("/getCollege") @ApiOperation("查询学院信息") public CommonResult<IPage<ZgdCo
阅读全文
posted @ 2024-04-16 10:30 邹笑傲
阅读(1011)
评论(0)
推荐(0)
2024年4月15日
Winodows安装Mysql 8.0.36 简单教程
摘要: 下载 https://dev.mysql.com/downloads/mysql/ 选择下载简单版本即可 安装 1. 解压 将下载下来的安装包进行解压 2. mysql初始化 用cmd进入的mysql的解压包的bin目录里,执行初始化命令 mysqld --initialize --console
阅读全文
posted @ 2024-04-15 16:55 邹笑傲
阅读(333)
评论(0)
推荐(0)
2023年12月4日
SpringBoot+MybatisPlus 存json读json
摘要: 基础环境 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 邹笑傲
阅读(435)
评论(0)
推荐(0)
2023年10月23日
Java Map填充Json模版,并生成Json文件
摘要: 一、准备工作 引入基础的springboot环境 引入freemark依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-freemarker</artifactId>
阅读全文
posted @ 2023-10-23 10:39 邹笑傲
阅读(408)
评论(0)
推荐(0)
2023年8月4日
Mybatis-Plus 多数据源 @DS注解部分失效
摘要: ## 问题1 ### 环境 springboot+mybatis-plus 在controller层一个request中有多个service调用保存接口,发现在mapper层上定义的@DS注解指定数据源部分指向了primary数据源。导致表找不到。 ### 处理 猜测是不能走mybatis-plus
阅读全文
posted @ 2023-08-04 10:16 邹笑傲
阅读(1898)
评论(0)
推荐(0)
SpringBoot 全局异常处理
摘要: ### 1、 新建异常处理枚举类 ```java package com.luwang.iot.common.exception; public enum ExceptionEnum { // 数据操作错误定义 SUCCESS("200", "成功!"), BODY_NOT_MATCH("400",
阅读全文
posted @ 2023-08-04 09:51 邹笑傲
阅读(39)
评论(0)
推荐(0)
2023年6月25日
使用 ffmpeg + nginx 实现rtsp视频流转m3u8视频流
摘要: # Windows环境 ## 安装ffmpeg ###下载地址:https://github.com/BtbN/FFmpeg-Builds/releases ###安装:下载对应系统安装包,解压缩。 ###配置环境:在环境变量的path中添加ffmpeg的bin目录路径 D:\ware\ffmpeg
阅读全文
posted @ 2023-06-25 16:04 邹笑傲
阅读(1963)
评论(0)
推荐(0)
2023年4月3日
SpringBoot+Prometheus+Grafana监控服务
摘要: 服务模块 pom.xml文件引入依赖 ####基于SpringBoot版本 <2.5.3> <dependency> <groupId>io.micrometer</groupId> <artifactId>micrometer-registry-prometheus</artifactId> <v
阅读全文
posted @ 2023-04-03 17:31 邹笑傲
阅读(77)
评论(0)
推荐(0)
2023年3月17日
【Bug】 Springboot 调用第三方接口报在 "请求目标中找到无效字符。有效字符在RFC 7230和RFC 3986中定义"
摘要: 错误信息 问题原因 tomcat高版本严格按照RFC 3986规范解析地址。该规范只允许包含 a-zA-Z 0-9 - _ . ~ 以及所有保留字符 ! * ’ ( ) ; : @ & = + $ , / ? # [ ] url中有中文。 解决方法 对中文字段进行 URLEncoder.encode
阅读全文
posted @ 2023-03-17 14:27 邹笑傲
阅读(111)
评论(0)
推荐(0)
2023年2月9日
SpirngBoot+SpringSecurity+Jwt鉴权认证
摘要: 写在开头 基础环境 jdk1.8+maven3.8.5。 为了简单起见,省略从表中查询数据,直接从dao返回用户权限数据。 引入依赖 <!-- springboot--> <dependency> <groupId>org.springframework.boot</groupId> <artifa
阅读全文
posted @ 2023-02-09 14:24 邹笑傲
阅读(194)
评论(0)
推荐(0)
下一页
公告