随笔分类 -  微服务

摘要: 阅读全文
posted @ 2022-07-07 10:55 onecyl 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-07-04 14:32 onecyl 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-06-27 11:13 onecyl 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-06-17 11:25 onecyl 阅读(16) 评论(0) 推荐(0) 编辑
摘要:0.安装Docker Docker 分为 CE 和 EE 两大版本。CE 即社区版(免费,支持周期 7 个月),EE 即企业版,强调安全,付费使用,支持周期 24 个月。 Docker CE 分为 stable test 和 nightly 三个更新频道。 官方网站上有各种环境下的 安装指南,这里主 阅读全文
posted @ 2022-06-16 14:06 onecyl 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-06-16 13:53 onecyl 阅读(21) 评论(0) 推荐(0) 编辑
摘要:快捷复制: globalcors: # 全局的跨域处理 add-to-simple-url-handler-mapping: true # 解决options请求被拦截问题 corsConfigurations: '[/**]': allowedOrigins: # 允许哪些网站的跨域请求 - "* 阅读全文
posted @ 2022-06-13 15:32 onecyl 阅读(494) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-06-10 14:14 onecyl 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-06-09 18:11 onecyl 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-06-09 17:27 onecyl 阅读(48) 评论(0) 推荐(0) 编辑
摘要:官方文档链接: https://docs.spring.io/spring-cloud-gateway/docs/2.2.9.RELEASE/reference/html/#gateway-request-predicates-factories 阅读全文
posted @ 2022-06-09 16:59 onecyl 阅读(30) 评论(0) 推荐(0) 编辑
摘要:注:此处如果有启动时Warn信息:Cannot determine local hostname 则可以在配置文件中加入以下配置来忽略对虚拟网卡的扫描,可以避免服务启动时的卡顿 spring: cloud: inetutils: # 忽略虚拟机网卡,避免启动项目时卡顿 ignored-interfa 阅读全文
posted @ 2022-06-09 14:40 onecyl 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-06-09 14:03 onecyl 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-06-09 11:16 onecyl 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-06-09 11:06 onecyl 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-06-09 10:27 onecyl 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-06-09 10:02 onecyl 阅读(25) 评论(0) 推荐(0) 编辑
摘要:1.集群结构图 官方给出的Nacos集群图: 其中包含3个nacos节点,然后一个负载均衡器代理3个Nacos。这里负载均衡器可以使用nginx。 我们计划的集群结构: 三个nacos节点的地址: 节点ipport nacos1 本机ip 8845 nacos2 本机ip 8846 nacos3 本 阅读全文
posted @ 2022-06-07 17:07 onecyl 阅读(61) 评论(0) 推荐(0) 编辑
摘要:在Controller中加入测试代码,用来测试Nacos的配置是否生效: 如果无法注入可以先注入一个Bean对象再进行Autowerid 阅读全文
posted @ 2022-06-07 16:22 onecyl 阅读(108) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示