摘要: 1 编写 ConsulServerOptions 类 public class ConsulServerOptions { public string? IP { get; set; } public int Port { get; set; } public string? Datacenter 阅读全文
posted @ 2022-06-03 10:13 温故纳新 阅读(111) 评论(0) 推荐(0)
摘要: 1 在Startup中添加 public Startup(IWebHostEnvironment env) { var builder = new ConfigurationBuilder() .SetBasePath(env.ContentRootPath) .AddJsonFile("appse 阅读全文
posted @ 2022-06-03 10:12 温故纳新 阅读(431) 评论(0) 推荐(0)