前端传 String 后端使用 enum
情况 前端 String 后端 enum 前端后端报错 1234562024-05-31T21:47:40.618+08:00 WARN 21360 --- [nio-8080-exec-6] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'com.orchids.springmybatisplus.model.enums.Sex'; Failed to convert from type [java.lang.String] to type [@org.springframework.web.bind.annotation.RequestParam com.orchids.springmybatis ...
CentOS7 安装 Redis
发表于 |更新于 |Redis
gcc 环境
判断是否安装了 gcc 环境
1gcc --version
如果 GCC 已安装,此命令将输出 GCC 的版本信息。
12345 [root@CentOS7 system]# gcc --versiongcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) Copyright © 2015 Free Software Foundation, Inc. 本程序是自由软件;请参看源代码的版权声明。本软件没有任何担保;包括没有适销性和某一专用目的下的适用性担保。
如果未安装,您将看到类似于 “command not found” 的信息
下载安装 gcc 环境
1yum install -y gcc tcl
Redis 安装
下载
1wget https://download.redis.io/releases/redis-7.2.0.tar.gz
解压 redis-7.2.0.tar.gz 文件
1tar -zxvf redis-7.2.0.tar.gz
进入 redis 安装目录
1cd redis-7.2.0
安装
1make && make ins ...
Centos7 安装 MinIO
发表于 |更新于 |DownLoad
获取 MinIO 安装包
下载地址如下:下载地址
通过以下命令可直接将安装包下载至服务器
1wget https://dl.min.io/server/minio/release/linux-amd64/archive/minio-20230809233022.0.0.x86_64.rpm
安装 MinIO1rpm -ivh minio-20230809233022.0.0.x86_64.rpm
集成 Systemd
编写 MinIO 服务配置文件
1vim /etc/systemd/system/minio.service
内容如下,具体可参考 MinIO 官方文档
12345678910111213141516171819202122 [Unit] Description=MinIODocumentation=https://min.io/docs/minio/linux/index.htmlWants=network-online.targetAfter=network-online.targetAssertFileIsExecutable=/usr/local/bin/minio [Servic ...
Redis 常用命令
发表于 |更新于 |Redis
查看所有键 keys 命令可用于查看所有键,语法如下 pattern 用于匹配 key,其中表示任意个任意字符 1keys pattern 键总数 dbsize 可用于查看键的总数,语法如下 1dbsize 判断键是否存在 exists 命令可用于判断一个键是否存在,语法如下 1exists key 删除键 del 可用于删除指定键,语法如下返回值为删除键的个数,若删除一个不存在的键,则返回 0。1del key [key ...] 查询键的剩余过期时间 1ttl key 数据库管理命令 Redis 默认有编号为 0~15 的 16 个逻辑数据库,每个数据库之间的数据是相互独立的,所有连接默认使用的都是 0 号数据库。* 切换数据库 select 命令可用于切换数据库,语法如下
若 index 超出范围,会报错
1select index
清空数据库 flushdb 命令会清空当前所选用的数据库,flushall 命令会清空 0~15 号所有的数据库。
stringRedis 中的 string 类型保存的是字节序列(Sequence of bytes),因此任意类型的数据,只要经过序列化之后都可以保存到 Redis 的 string 类型中,包括文本、数字甚至是一个对象 ...
Hello World
发表于 |更新于
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment
公告
nullpointer.love | github.io
网站资讯
文章数目 :
22
本站总字数 :
3.6w
本站访客数 :
101
本站总访问量 :
175
最后更新时间 :
7 个月前