eclipse 打包不同环境配置
redis :https://redis.io/download
mybatis框架中的queryWrapper的or查询,联想到MySQL中and 和or的关系
public int method(String id, int isRemoved) { QueryWrapper queryWrapper = new QueryWrapper<>(); queryWrapper.eq("id", id); queryWrapper.eq("status", DeviceConstant.DeviceStatus.WORK) .or().eq("status", DeviceConstant.DeviceStatus.FAULT); return mapper.selectCount(queryWrapper); }
Linux permission denied解决方法
一、准备
比如建立一个test.sh的脚本文件,脚本代码如下:
#! /bin/bash
echo Hello,world!
代码功能实现的是:输出字符Hello,world!
二、运行脚本
在终端切换到test.sh所在目录并运行程序,出现Permission denied提示,如下:
[devel@localhost v2]$ ls
test.sh
[devel@localhost v2]$ chmod 111 test.sh
[devel@localhost v2]$ ls
[devel@localhost v2]$ ./test.sh
/bin/bash: ./test.sh: Permission denied
三、修改文件权限
这是我们可以借助chmod命令修改文件权限即可,如下:
[devel@localhost v2] chmod 777 test.sh
[devel@localhost v2] ./test.sh
Hello,world!
补充:
[devel@localhost v2] ./test_curl.sh profile_list get
运行脚本,profile_list是对应的url,get是请求方式。
结束!