Deprecated: Constant PDO::MYSQL_ATTR_USE_BUFFERED_QUERY is deprecated since 8.5, use Pdo\Mysql::ATTR_USE_BUFFERED_QUERY instead in /www/wwwroot/www.1998123.xyz/var/Typecho/Db/Adapter/Pdo/Mysql.php on line 71
2020年9月 - 98123_学习与记录

2020年9月

下表把 jpa 做的各种查询规范都列出来了。 如果要做其他相关查询,按照表格中的规范设计接口方法即可。


关键词 举例 生成的JPQL 语句片段
And findBy**Lastname**And**Firstname** … where x.lastname = ?1 and x.firstname = ?2
Or findBy**Lastname**Or**Firstname** … where x.lastname = ?1 or x.firstname = ?2
Is,Equals findBy**Firstname**,
findBy**Firstname**Is,
findBy**Firstname**Equals
… where x.firstname = ?1
Between findBy**StartDate**Between … where x.startDate between ?1 and ?2
LessThan findBy**Age**LessThan … where x.age < ?1
LessThanEqual findBy**Age**LessThanEqual … where x.age ⇐ ?1
GreaterThan findBy**Age**GreaterThan … where x.age > ?1
GreaterThanEqual findBy**Age**GreaterThanEqual … where x.age >= ?1
After findBy**StartDate**After … where x.startDate > ?1
Before findBy**StartDate**Before … where x.startDate < ?1
IsNull findBy**Age**IsNull … where x.age is null
IsNotNull,NotNull findBy**Age**(Is)NotNull … where x.age not null
Like findBy**Firstname**Like … where x.firstname like ?1
NotLike findBy**Firstname**NotLike … where x.firstname not like ?1
StartingWith findBy**Firstname**StartingWith … where x.firstname like ?1 (parameter bound with appended %)
EndingWith findBy**Firstname**EndingWith … where x.firstname like ?1 (parameter bound with prepended %)
Containing findBy**Firstname**Containing … where x.firstname like ?1 (parameter bound wrapped in %)
OrderBy findBy**Age**OrderBy**Lastname**Desc … where x.age = ?1 order by x.lastname desc
Not findBy**Lastname**Not … where x.lastname <> ?1
In findBy**Age**In(Collection ages) … where x.age in ?1
NotIn findBy**Age**NotIn(Collection age) … where x.age not in ?1
True findBy**Active**True() … where x.active = true
False findBy**Active**False() … where x.active = false
IgnoreCase findBy**Firstname**IgnoreCase … where UPPER(x.firstame) = UPPER(?1)

腾讯云的服务器会自动安装云监控、云镜等安全服务,方便在控制台查看产品运行状态等

可以看一下服务器的定时任务:

$ crontab -l

*/1 * * * * /usr/local/qcloud/stargate/admin/start.sh > /dev/null 2>&1 &

0 0 * * * /usr/local/qcloud/YunJing/YDCrontab.sh > /dev/null 2>&1 &

从来不看腾讯云的云监控控制台,要这东西有何用,卸载

云监控 Linux 安装目录是/usr/local/qcloud/stargate/usr/local/qcloud/monitor

还有一个主机安全,也就是所谓的云镜,新开服务器不取消勾选都会默认安装

云镜 Linux 安装目录是/usr/local/qcloud/YunJing

统统卸载!!!

直接在腾讯云服务器上运行以下代码

/usr/local/qcloud/stargate/admin/uninstall.sh
/usr/local/qcloud/YunJing/uninst.sh
/usr/local/qcloud/monitor/barad/admin/uninstall.sh

这些都是腾讯云自带的卸载脚本,如果你不想用也可以使用打包好的 shell

wget -qO- https://raw.githubusercontent.com/littleplus/TencentAgentRemove/master/remove.sh | bash

此脚本卸载完腾讯云的监控,但是腾讯云文件夹并不是只有监控,为了保险起见,脚本不会

rm -rf /usr/local/qcloud

,不作死就不会死
卸载完以后可以通过如下命令来查看是否卸载干净

ps -A | grep agent

如无任何输出,则已卸载干净,如果有输出,请检查是否你自己的程序

测试vps
腾讯云轻应用云-香港云
1G
1核
25G
安装:

curl -sSL https://get.daocloud.io/docker | sh
dokcer操作
docker images -----查看镜像列表
docker rmi <id/名称>-----删除镜像 指定镜像名 或者TMAGEID -f强制删除镜像
docker ps-------查看当前启动的容器
docker stop 停止当前容器 ID
docker rm -f 删除当前容器

持续不断更新,支持交互、无人值守安装
源码编译安装,大多数源码是最新stable版,并从官方网址下载
提供多个数据库版本(MySQL-8.0, MySQL-5.7, MySQL-5.6, MySQL-5.5, MariaDB-10.4,MariaDB-10.3,MariaDB-10.2,MariaDB-5.5,Percona-8.0, Percona-5.7, Percona-5.6, Percona-5.5,AliSQL-5.6,PostgreSQL, MongoDB)
提供多个PHP版本(PHP-7.4,PHP-7.3,PHP-7.2,PHP-7.1,PHP-7.0,PHP-5.6, PHP-5.5,PHP-5.4,PHP-5.3)
提供Nginx、Tengine、OpenResty和nginx waf功能
提供多个Apache版本(Apache-2.4,Apache-2.2)
提供多个Tomcat版本(Tomcat-9,Tomcat-8,Tomcat-7,Tomcat-6)
提供多个JDK版本(JDK-11.0,JDK-1.8,JDK-1.7,JDK-1.6)
根据自己需求安装PHP缓存加速器,提供ZendOPcache、xcache、apcu、eAccelerator。及php加解密工具ionCube、ZendGuardLoader
根据自己需求安装Pureftpd、phpMyAdmin
根据自己需求安装Memcached、Redis
jemalloc优化MySQL、Nginx
提供添加虚拟主机脚本
提供Nginx/Tengine/OpenResty/Apache、PHP、Redis、Memcached、phpMyAdmin升级脚本
提供本地备、远程(rsync)、阿里云OSS、腾讯云COS、又拍云、七牛云、亚马逊S3和Dropbox备份脚本
提供CentOS 6、7下HHVM安装
网站地址:https://oneinstack.com/