上一页 1 2 3 4 5 6 7 ··· 20 下一页
摘要: 在springboot1.x系列中,其中使用的是jedis,但是到了springboot2.x其中使用的是Lettuce。 此处springboot2.x,所以使用的是Lettuce。关于jedis跟lettuce的区别: Lettuce 和 Jedis 的定位都是Redis的client,所以他们 阅读全文
posted @ 2022-02-12 14:00 智昕 阅读(1153) 评论(0) 推荐(26) 编辑
摘要: 中国大学json var schoolList = [{ "id": 1, "school": [{ "id": 1001, "name": "清华大学" }, { "id": 1002, "name": "北京大学" }, { "id": 1003, "name": "中国人民大学" }, { " 阅读全文
posted @ 2022-01-07 11:05 智昕 阅读(487) 评论(0) 推荐(4) 编辑
摘要: 1、在/etc/yum.repos.d/下创建kibana.repo cd /etc/yum.repos.d/ touch kibana.repo 内容如下: [kibana-7.x] name=Kibana repository for 7.x packages baseurl=https://a 阅读全文
posted @ 2021-11-27 00:31 智昕 阅读(873) 评论(0) 推荐(19) 编辑
摘要: 1、安装公开签名,设置环境变量 rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch ES_PATH_CONF=/path/to/my/config ./bin/elasticsearch 2、在/etc/yum.repos. 阅读全文
posted @ 2021-11-26 23:02 智昕 阅读(307) 评论(0) 推荐(4) 编辑
摘要: ThinkPHP5从V5.0.17之后,如果排序使用到SQL函数,要用orderRaw()代替order()进行排序。 阅读全文
posted @ 2019-11-19 14:08 智昕 阅读(2521) 评论(0) 推荐(3) 编辑
摘要: 最新解决方案: 对于一些实在复杂的查询,比如find_in_set,也可以直接使用原生SQL语句进行查询,例如: Db::table('think_user') ->where('find_in_set(1,sids)') ->select(); 为了安全起见,我们可以对字符串查询条件使用参数绑定, 阅读全文
posted @ 2019-10-09 14:16 智昕 阅读(17932) 评论(0) 推荐(35) 编辑
摘要: <?php /** * 红包分配算法 * * example * $coupon = new Coupon(200, 5); * $res = $coupon->handle(); * print_r($res); * * @author Flc <2018-04-06 20:09:53> * @s 阅读全文
posted @ 2019-08-28 11:41 智昕 阅读(623) 评论(0) 推荐(3) 编辑
摘要: base64_encode是加密,而base64_decode是解密 base64_encode 语法:string base64_encode(string data); base64_decode 语法:string base64_decode(string data); 阅读全文
posted @ 2019-07-01 18:00 智昕 阅读(38405) 评论(0) 推荐(42) 编辑
摘要: 首先把商家的经纬度存数据库 前台获取用户的经纬度地址,获取用户城市。 阅读全文
posted @ 2019-06-13 21:21 智昕 阅读(838) 评论(0) 推荐(0) 编辑
摘要: 今天做倒计时的时候发现了一个简单好用的插件jquery.downCount.js代码如下: 阅读全文
posted @ 2019-05-08 18:00 智昕 阅读(1152) 评论(0) 推荐(8) 编辑
上一页 1 2 3 4 5 6 7 ··· 20 下一页