上一页 1 2 3 4 5 6 7 ··· 20 下一页
摘要: 上篇参考:Spring Cloud快速使用教程(一) 在快速搭建Spring Cloud我们如果要简单快速的使用负载均衡可以如下实现 以下是实现示例: 使用Spring Cloud快速使用教程(一)创建seaver-a模块的方法创建server-a01 在创建好的模块创建控制器: IndexA: p 阅读全文
posted @ 2022-03-12 10:55 智昕 阅读(419) 评论(0) 推荐(10)
摘要: 在研究spring cloud,下面是快速搭建方法 我使用的是IDEA 中文汉化版,大家可自行汉化1、先创建一个工程 2、拉下来创建注册组件 同样的选择springboot工程 为eureka注册中心添加注解开启服务 配置eureka注册中心配置文件 application.yml (注意缩进) s 阅读全文
posted @ 2022-03-11 18:05 智昕 阅读(1528) 评论(0) 推荐(31)
摘要: 在springboot1.x系列中,其中使用的是jedis,但是到了springboot2.x其中使用的是Lettuce。 此处springboot2.x,所以使用的是Lettuce。关于jedis跟lettuce的区别: Lettuce 和 Jedis 的定位都是Redis的client,所以他们 阅读全文
posted @ 2022-02-12 14:00 智昕 阅读(1309) 评论(0) 推荐(27)
摘要: 中国大学json var schoolList = [{ "id": 1, "school": [{ "id": 1001, "name": "清华大学" }, { "id": 1002, "name": "北京大学" }, { "id": 1003, "name": "中国人民大学" }, { " 阅读全文
posted @ 2022-01-07 11:05 智昕 阅读(816) 评论(0) 推荐(7)
摘要: 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 智昕 阅读(888) 评论(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 智昕 阅读(343) 评论(0) 推荐(4)
摘要: ThinkPHP5从V5.0.17之后,如果排序使用到SQL函数,要用orderRaw()代替order()进行排序。 阅读全文
posted @ 2019-11-19 14:08 智昕 阅读(2588) 评论(0) 推荐(4)
摘要: 最新解决方案: 对于一些实在复杂的查询,比如find_in_set,也可以直接使用原生SQL语句进行查询,例如: Db::table('think_user') ->where('find_in_set(1,sids)') ->select(); 为了安全起见,我们可以对字符串查询条件使用参数绑定, 阅读全文
posted @ 2019-10-09 14:16 智昕 阅读(18589) 评论(0) 推荐(38)
摘要: <?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 智昕 阅读(639) 评论(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 智昕 阅读(38579) 评论(0) 推荐(42)
上一页 1 2 3 4 5 6 7 ··· 20 下一页