Administrator

Administrator

数据库SQL调优的几种方式【转发】

数据库SQL调优的几种方式在项目中,SQL的调优对项目的性能来讲至关重要,所有掌握常见的SQL调优方式是必不可少的,下面介绍几种常见的SQL的调优方式,供借鉴.一.创建索引1.要尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引2.(1)在经常需要进行检索的字段上创

nginx: [emerg] unknown directive “stream“ in /etc/nginx/nginx.conf:8

解决办法:yum -y install nginx-all-modules.noarch然后在用nginx -t就好了

JAVA获取UTC时间

import org.joda.time.format.DateTimeFormatter;import org.joda.time.DateTime;private static final String UTC_FORMATTER_PATTERN = "yyyy-MM-dd'T

10种延迟任务实现方式【转发】

https://blog.csdn.net/echizao1839/article/details/105533214

nginx+lua+redis+OpenResty缓存,限流

Lua安装yum install -y gccyum install libtermcap-devel ncurses-devel libevent-devel readline-develcurl -R -O http://www.lua.org/ftp/lua-5.3.5.tar.gztar -

centos7一键离线安装脚本-nginx

使用方法sh install_nginx.shinstall_nginx.sh接收$1参数,可指定安装路径,默认安装路径为/usr/localinstall_nginx.sh#!/bin/bashdirectory=$1current_dir=`pwd`function select

centos7一键离线安装脚本-mysql5.7

使用方法source install_mysql.shinstall_mysql.sh接收$1参数,设置mysql密码,默认密码为mysql初始密码,会打印出来。$2为安装路径,默认安装路径为/usr/local.$3为数据存储路径,默认安装路径为/usr/local/mysql/data.inst

centos7一键离线安装脚本-jdk.18

source install_jdk8.shinstall_jdk8.sh接收$1参数,可指定安装路径,默认安装路径为/usr/local

swagger2 model不显示 找不到model @ApiModel注解 不显示问题

解决方案:去掉内层实体的ApiModel描述注解。@ApiModel(value=“LoginParam”, description=“登录请求参数”)去掉description 即可。