在新建一个ASP.NET Core项目后,在项目Startup类的Configure方法中默认会添加两个方法的调用,app.UseDeveloperExceptionPage和app.UseExceptionHandler,如下所示: // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicatio