随笔分类 - c#微服务框架
摘要:中间件 public class CustomOcelotMiddleware : Ocelot.Middleware.OcelotMiddleware { private readonly RequestDelegate _next; public IConfiguration _configur
阅读全文
摘要:把服务A和服务B接口分别部署在两个ip地址上 修改 services.json文件, "encrypt": "7TnJPB4lKtjEcCWWjN6jSA==",必须一致; 然后先启动192.168.1.2上的consul, 启动命令 consul agent -server -datacenter
阅读全文
摘要:参考大佬的博客写的:https://www.cnblogs.com/alan-lin/p/9126155.html;也可以参考这篇博客:https://www.cnblogs.com/axzxs2001/p/8487521.html 首先下载Consul: https://www.consul.io
阅读全文