摘要: SELECT CONCAT( 'ALTER TABLE ', table_name, ' RENAME TO db_', substring(table_name, 4), ';' ) FROM information_schema. TABLES WHERE table_name LIKE 'ct 阅读全文
posted @ 2020-01-28 16:46 磊~哥 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Select 'SET FOREIGN_KEY_CHECKS = 0;'unionSelect CONCAT( 'drop table ', table_name, ';' )FROM information_schema.tablesWhere table_name LIKE 'as_baiqis 阅读全文
posted @ 2020-01-27 16:35 磊~哥 阅读(2390) 评论(0) 推荐(0) 编辑
摘要: 运行下面语句清缓存时,报Permission denied错误:-bash: /proc/sys/vm/drop_caches: Permission denied sudo echo 1 > /proc/sys/vm/drop_caches sudo echo 2 > /proc/sys/vm/d 阅读全文
posted @ 2020-01-04 16:48 磊~哥 阅读(4025) 评论(0) 推荐(0) 编辑
摘要: 一、 启动1、使用 service 启动:service mysql start2、使用 mysqld 脚本启动:/etc/inint.d/mysql start3、使用 safe_mysqld 启动:safe_mysql&二、停止1、使用 service 启动:service mysql stop 阅读全文
posted @ 2019-12-18 16:25 磊~哥 阅读(11156) 评论(0) 推荐(0) 编辑
摘要: 需要在网关添加代理 阅读全文
posted @ 2019-12-12 10:50 磊~哥 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 前言最近有个项目需要对外提供一个接口,提供公网域名进行访问,而且接口和交易订单有关,所以安全性很重要;这里整理了一下常用的一些安全措施以及具体如何去实现。安全措施个人觉得安全措施大体来看主要在两个方面,一方面就是如何保证数据在传输过程中的安全性,另一个方面是数据已经到达服务器端,服务器端如何识别数据 阅读全文
posted @ 2019-11-27 14:16 磊~哥 阅读(867) 评论(0) 推荐(0) 编辑
摘要: //定义时间格式转换器@Beanpublic MappingJackson2HttpMessageConverter jackson2HttpMessageConverter() { MappingJackson2HttpMessageConverter converter = new Mappin 阅读全文
posted @ 2019-11-25 21:05 磊~哥 阅读(1053) 评论(0) 推荐(0) 编辑
摘要: package com.feige.admin.web.shiro;import com.alibaba.fastjson.JSONObject;import com.feige.common.responce.ResponceStatus;import com.feige.common.respo 阅读全文
posted @ 2019-11-25 16:30 磊~哥 阅读(5823) 评论(0) 推荐(0) 编辑
摘要: (验证)authc:AuthencationException:AuthenticationException 异常是Shiro在登录认证过程中,认证失败需要抛出的异常。 AuthenticationException包含以下子类: CredentitalsException 凭证异常 Incorr 阅读全文
posted @ 2019-11-22 17:48 磊~哥 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 选择在Linux下安装redis,现在采用虚拟机安装的centos7 进行安装的 1.安装gcc redis是c语言编写的 yum install gcc-c++ 2.下载redis安装包,在root目录下执行 wget http://download.redis.io/releases/redis 阅读全文
posted @ 2019-11-19 11:07 磊~哥 阅读(158) 评论(0) 推荐(0) 编辑