using System; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Volo.Abp.AspNetCore.Mvc.ExceptionHandling; namespace WmsWebApi { public class Startup { public void ConfigureServices(IServiceCollection services) { services.AddApplication(); services.AddControllersWithViews(options => { options.Filters.Add(typeof(AbpExceptionFilterExtension)); }); } public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory) { app.InitializeApplication(); } } }