摘要:
1 编写 ConsulServerOptions 类 public class ConsulServerOptions { public string? IP { get; set; } public int Port { get; set; } public string? Datacenter 阅读全文
摘要:
1 在Startup中添加 public Startup(IWebHostEnvironment env) { var builder = new ConfigurationBuilder() .SetBasePath(env.ContentRootPath) .AddJsonFile("appse 阅读全文