摘要: 视频地址 阅读全文
posted @ 2021-04-23 16:24 ProZkb 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 启动的顺序 Main-->CreateHostBuilder-->ConfigureWebHostDefaults -->Startup-->ConfigureServices-->CreateHostBuilder-->Configure -->WeatherForecastController- 阅读全文
posted @ 2021-04-23 15:59 ProZkb 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 直接上代码,我们可以创建自己的MyStartUp类 public class MyStartup { //这个方法是可有可无的、用来进行依赖注入的添加 public void ConfigureServices(IServiceCollection services) { services.AddM 阅读全文
posted @ 2021-04-23 14:46 ProZkb 阅读(135) 评论(0) 推荐(0) 编辑
摘要: { "iisSettings": { "windowsAuthentication": false, "anonymousAuthentication": true, "iisExpress": { "applicationUrl": "http://localhost:59016", "sslPo 阅读全文
posted @ 2021-04-23 12:52 ProZkb 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 直接上代码,重点文字看注释 namespace ProNetCore { public class Program { public static void Main(string[] args) { //在内部会先配置K8s服务器和IIS相关,其他配置 IHostBuilder builder = 阅读全文
posted @ 2021-04-23 12:34 ProZkb 阅读(117) 评论(0) 推荐(0) 编辑