Dict.CN 在线词典, 英语学习, 在线翻译 ------------- MyGitee My腾云code My51cto

Happy_EveryDay

可以平凡 不可以平庸 无爱则无忧,无欲则无求,无怒而无敌,无怨才是佛。所有烦恼,都是放不下的执著 开源技群 328035181 MyGitee

博客园 首页 新随笔 管理
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 47 下一页

2021年10月21日 #

摘要: 阅读全文
posted @ 2021-10-21 09:22 2026cn 阅读(57) 评论(0) 推荐(0)

2021年10月20日 #

摘要: 1:点击idea右上角倒三角形 →Edit Configurations; 2:在弹出的窗口选择要启用多个实例的启动类点击后在设置页面将Single instance only 选项去掉即可 3:在application.yml配置中将端口号修改启动即可 这时就有两个实例启动了 阅读全文
posted @ 2021-10-20 09:42 2026cn 阅读(889) 评论(0) 推荐(0)

摘要: 1、provider 2、 手写LoadBalancer 3、实例 1)、provider2004 2)、consumer2018 手写LoadBalancer i)、pom.xml <dependency> <groupId>org.springframework.boot</groupId> < 阅读全文
posted @ 2021-10-20 09:07 2026cn 阅读(467) 评论(0) 推荐(0)

2021年10月19日 #

摘要: 1、流程 2、实例 consumber2017 1)、provider2004=>hello/{}=>hello/1231231231ddddd 2)、 consumber2017#########application.properties # 应用名称spring.application.nam 阅读全文
posted @ 2021-10-19 08:59 2026cn 阅读(107) 评论(0) 推荐(0)

2021年10月18日 #

摘要: 阅读全文
posted @ 2021-10-18 09:12 2026cn 阅读(58) 评论(0) 推荐(0)

摘要: 4.服务注册&发现和配置管理 https://nacos.io/zh-cn/docs/quick-start.html post 服务注册 查询服务 get 阅读全文
posted @ 2021-10-18 09:09 2026cn 阅读(197) 评论(0) 推荐(0)

2021年10月15日 #

摘要: 环境: mysql 引擎:innodb 表结构: mh_uid_user 两个字段,username为索引 mh_user 八个字段,username为索引 500W条数据时,insert一条数据的执行时间是20ms+ 根据主键或索引select一条数据差不多是1-10ms 全局select一条数据 阅读全文
posted @ 2021-10-15 14:27 2026cn 阅读(390) 评论(0) 推荐(0)

摘要: 阅读全文
posted @ 2021-10-15 09:03 2026cn 阅读(55) 评论(0) 推荐(0)

2021年10月13日 #

摘要: 1、provider2004 1)、application.properties application.properties# 应用名称spring.application.name=provider2004# 应用服务 WEB 访问端口server.port=2004# Nacos帮助文档: h 阅读全文
posted @ 2021-10-13 11:26 2026cn 阅读(101) 评论(0) 推荐(0)

摘要: 阅读全文
posted @ 2021-10-13 09:18 2026cn 阅读(49) 评论(0) 推荐(0)

摘要: 阅读全文
posted @ 2021-10-13 09:16 2026cn 阅读(43) 评论(0) 推荐(0)

2021年10月12日 #

摘要: 阅读全文
posted @ 2021-10-12 09:05 2026cn 阅读(60) 评论(0) 推荐(0)

2021年10月8日 #

摘要: 阅读全文
posted @ 2021-10-08 10:27 2026cn 阅读(52) 评论(0) 推荐(0)

2021年9月28日 #

摘要: 1、新建项目 2、右击 Add Framework Support => 3、Generate Java Code from WSDL http://127.0.0.1:8989/service/UserService?wsdl 4、 WSDL生成代码如下 5、Client类 测试调用WSDL 20 阅读全文
posted @ 2021-09-28 18:35 2026cn 阅读(150) 评论(0) 推荐(0)

2021年9月27日 #

摘要: 1、POM.xml <?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instanc 阅读全文
posted @ 2021-09-27 15:46 2026cn 阅读(101) 评论(0) 推荐(0)

摘要: 引入依赖包<!-- https://mvnrepository.com/artifact/javax.jws/javax.jws-api --><dependency><groupId>javax.jws</groupId><artifactId>javax.jws-api</artifactId> 阅读全文
posted @ 2021-09-27 15:11 2026cn 阅读(1573) 评论(0) 推荐(0)

2021年9月15日 #

摘要: 前提 当然,搭建分布式系统之前,你要搞清楚dubbo和Zookeeper的关系,先安装启动Zookeeper 搭建工程,新建maven工程,什么都不需要勾选 或者创建空工程 创建公共接口spring-dubbo-api(即公共调用模块) file->new->module 选择maven或sprin 阅读全文
posted @ 2021-09-15 17:32 2026cn 阅读(363) 评论(0) 推荐(0)

摘要: 9、Nacos 1)、Raft算法 原理 2)、Raft算法 选举过程 i)、 ####每个节点随机生成一个选举超时时间 ii)、 ####每个节点随机生成一个选举超时时间 时间可能相同 iii)、##########故障重新选举 ###################检测心跳时间######### 阅读全文
posted @ 2021-09-15 09:01 2026cn 阅读(61) 评论(0) 推荐(0)

2021年9月13日 #

摘要: 7、Nacos Raft算法 8、Nacos Zab算法 阅读全文
posted @ 2021-09-13 00:31 2026cn 阅读(47) 评论(0) 推荐(0)

2021年9月9日 #

摘要: windows下dos命令窗口输入netstat -ano即可查看端口使用情况,如果要查看指定端口是否被占用可以使用命令netstat -ano|findstr 端口号,例如要查看8080端口号是否已经被占用就使用命令netstat -ano|findstr 8080 如果结果为空则说明没有被使用, 阅读全文
posted @ 2021-09-09 10:40 2026cn 阅读(1424) 评论(0) 推荐(0)

2021年9月8日 #

摘要: 5、Nacos ZK与Eureka 6、Nacos nacos与Eureka 阅读全文
posted @ 2021-09-08 10:04 2026cn 阅读(43) 评论(0) 推荐(0)

2021年9月1日 #

摘要: 1、Nacos版本控制 dev 如下 2、Nacos 部暑模式Mysql ###mysql 创建用户root,密码123456 参考 https://www.cnblogs.com/badaoliumangqizhi/p/13895983.html Nacos Server did not star 阅读全文
posted @ 2021-09-01 09:30 2026cn 阅读(379) 评论(0) 推荐(0)

2021年8月31日 #

摘要: 1、如何使用jstack分析线程状态 https://www.cnblogs.com/silentdoer/p/11736498.html 2、top命令查看进程下线程信息以及jstack的使用 https://www.cnblogs.com/heyanan/p/9261695.html jstac 阅读全文
posted @ 2021-08-31 11:39 2026cn 阅读(216) 评论(0) 推荐(0)

摘要: 如果你还不知道 Fantastic-admin 是什么,那么我先用几张预览图给大家了解一番。 看来预览图,如果你感兴趣,可以点这里来详细了解并试用,这是一款完成度极高,开箱即用的后台框架,并且刚刚发布了 Vue3 版本支持。 回归正题 vue-element-admin 做为一款知名度相当高的后台框 阅读全文
posted @ 2021-08-31 10:37 2026cn 阅读(170) 评论(0) 推荐(0)

2021年8月29日 #

摘要: 配置中心如下 配置中心调用 及客主端配件文件内容实时同步@RefreshScope i)、pom.xml ii)、application.properties 如下配置 会报如下错误 nacoscontroller 以出现错误需要添加bootstrap.properties iii)、bootstr 阅读全文
posted @ 2021-08-29 19:57 2026cn 阅读(93) 评论(0) 推荐(0)

2021年8月26日 #

摘要: 1、pom.xml <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> </dependency> <depen 阅读全文
posted @ 2021-08-26 15:10 2026cn 阅读(889) 评论(0) 推荐(0)

2021年8月25日 #

摘要: docker-compose搭建的Mysql主从复制 设置前注意下面几点:1)要保证同步服务期间之间的网络联通。即能相互ping通,能使用对方授权信息连接到对方数据库(防火墙开放3306端口)。2)关闭selinux。3)同步前,双方数据库中需要同步的数据要保持一致。这样,同步环境实现后,再次更新的 阅读全文
posted @ 2021-08-25 09:46 2026cn 阅读(295) 评论(0) 推荐(0)

2021年8月24日 #

摘要: meiya@meiya:~$ docker pull abh1nav/dockerui Using default tag: latest latest: Pulling from abh1nav/dockerui a3ed95caeb02: Pull complete 5d3df020ecd3: 阅读全文
posted @ 2021-08-24 14:46 2026cn 阅读(86) 评论(0) 推荐(0)

摘要: 1、下载镜像docker pull docker.io/portainer/portainer 2、单机版运行启动docker run -d -p 9000:9000 --restart=always -v /var/run/docker.sock:/var/run/docker.sock --na 阅读全文
posted @ 2021-08-24 12:35 2026cn 阅读(1231) 评论(0) 推荐(0)

摘要: 阅读全文
posted @ 2021-08-24 09:16 2026cn 阅读(99) 评论(0) 推荐(0)

摘要: 通过docker logs命令可以查看容器的日志。 docker logs -f -t --tail 100 datacenter 命令格式: $ docker logs [OPTIONS] CONTAINER Options: --details 显示更多的信息 -f, --follow 跟踪实时 阅读全文
posted @ 2021-08-24 09:15 2026cn 阅读(220) 评论(0) 推荐(0)

2021年8月23日 #

摘要: 前言 为了体现不加索引和添加索引的区别,需要使用百万级的数据,但是百万数据的表,如果使用一条条添加,特别繁琐又麻烦,这里使用存储过程快速添加数据,用时大概4个小时。创建一个用户表 CREATE TABLE `t_sales` ( `id` int(11) NOT NULL AUTO_INCREMEN 阅读全文
posted @ 2021-08-23 11:54 2026cn 阅读(138) 评论(0) 推荐(0)

2021年8月22日 #

摘要: 报这个错是因为docker-compose版本为1.29.1,版本太高了,重新安装docker-compose 1.26.2就可以解决问题 百度网盘下载:https://pan.baidu.com/s/1cxuly3dRoZ8BgVklmxfriQ 密码:rcqi I faced the same 阅读全文
posted @ 2021-08-22 01:12 2026cn 阅读(525) 评论(0) 推荐(0)

2021年8月21日 #

摘要: ############springboot 项目 实例############mysql ###################################################################### 1、springboot 项目 docker-compose.ym 阅读全文
posted @ 2021-08-21 19:39 2026cn 阅读(345) 评论(0) 推荐(0)

2021年8月19日 #

摘要: <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.4.2</version> </dependency> <dependency> <g 阅读全文
posted @ 2021-08-19 14:49 2026cn 阅读(177) 评论(0) 推荐(0)

2021年8月18日 #

摘要: 一、MyBatis-Plus 1、简介 MyBatis-Plus 是一个 Mybatis 增强版工具,在 MyBatis 上扩充了其他功能没有改变其基本功能,为了简化开发提交效率而存在。 官网文档地址: https://mp.baomidou.com/guide/ MyBatis-Plus 特性: 阅读全文
posted @ 2021-08-18 15:04 2026cn 阅读(337) 评论(0) 推荐(0)

2021年8月17日 #

摘要: OAuth2.0 OAuth 引入了一个授权层,用来分离两种不同的角色:客户端和资源所有者。客户端来申请资源,资源所有者同意以后,资源服务器可以向客户端颁发令牌。客户端通过令牌,去请求数据。也就是说,OAuth 的核心就是向第三方应用颁发令牌。而且,OAuth 2.0 规定了四种获得令牌的流程。你可 阅读全文
posted @ 2021-08-17 10:41 2026cn 阅读(369) 评论(0) 推荐(0)

2021年8月16日 #

摘要: seata zh-cn/doc 1.搭建seata环境 1).下载seata 下载地址:https://github.com/seata/seata/releases 我下载的是1.4.0版本 2).搭建数据库 seata-server 搭建seata应用前,需要创建一个数据库。数据库名为: sea 阅读全文
posted @ 2021-08-16 15:00 2026cn 阅读(107) 评论(0) 推荐(0)

2021年8月14日 #

摘要: 我们继续来说宋仁宗。仁宗本人可以说是一个庸常的君主,没有什么雄才大略,也不见有什么丰功伟业,存在感似乎也特别低,连一个类似明朝正德皇帝“游龙戏凤”、清代“乾隆下江南”的风流传说也没有留下。 民间以宋仁宗朝为时代背景的故事演义倒是挺多的,比如《三侠五义》及包公案、《杨家将》、《呼家将》、《万花楼》,讲 阅读全文
posted @ 2021-08-14 11:45 2026cn 阅读(370) 评论(0) 推荐(0)

2021年8月11日 #

摘要: 在实际开发中,有时候会根据某个bean的名称或class到Spring容器中获取对应的Bean。这里只做个简单的记录,方便后续自查。 @Component public class SpringContextUtils implements ApplicationContextAware { pri 阅读全文
posted @ 2021-08-11 10:11 2026cn 阅读(302) 评论(0) 推荐(0)

上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 47 下一页