- 博客(6)
- 收藏
- 关注
原创 springboot3校验@Max注解出错
注解来限制字符串字节长度,调接口传了 "1"~"9"的单个数字都成功了,但是传2个以上字符长度的字符串直接报400。在springboot3的版本中,我使用springboot集成的校验框架。此版本的@Max注解有问题,可以用@Size限制字符长度来替代。在controller层的方法参数上使用。
2024-11-29 18:56:36
138
原创 springboot3使用redis序列化取出list列表值类型不能转换
springboot3解决redis序列化后存取redis的list列表值类型不能转换为List的问题。
2024-11-08 22:59:17
367
原创 SpringBoot3.0.2 @Resource注解注入自定义redisTemplate失败[巨坑]
因为初始时springboot会自动生成RedisTemplate<Object, Object>和StringRedisTemplate这两个类型的bean容器对象,在@Configuration注解标记的类中使用@Bean注解标记方法可以注入Bean容器对象并覆盖掉springboot自动注入的RedisTemplate<Object, Object>对象。SpringBoot3.0.2这个版本还是有些bug,建议更换3.3.x的最新版。
2024-09-28 01:11:46
563
原创 React+material框架的Dialog对话框打开黑屏背景解决
在react的项目中使用material UI组件库中的对话框Dialog组件遇到了点击按钮打开对话框背景黑屏现象。
2024-09-28 00:53:03
307
原创 SpringBoot3自定义redis序列化报错找不到bean:LettuceConnectionFactory
Spring Boot 3初始化redis连接池配置解决找不到bean:LettuceConnectionFactory
2024-09-25 21:35:54
814
原创 vscode下Code Runner插件点击运行go文件遇到找不到三方包
vscode运行go解决no required module provides package github.com/go-sql-driver/mysql: go.mod file not found in current directory or any parent directory; see 'go help modules'
2024-09-13 00:19:44
648
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人