前端传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
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
获取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常用命令
查看所有键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类型中,包括文本、数字甚至是一个对象 ...
234
472f0d2124ee617a2f29ff331422d5d36e3ddfaf7282caa5f0c8a44ee3968610
您好, 这里需要密码.
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