3-2添加路由時(shí) 加入這句代碼app.UseMvcWithDefaultRoute();,報(bào)錯(cuò)用戶未處理異常,請問老師是怎么回事?
System.InvalidOperationException:“Unable to find the required services. Please add all the required services by calling 'IServiceCollection.AddMvc' inside the call to 'ConfigureServices(...)' in the application startup code.”
2019-11-13
.原來是我自己寫漏了東西?