我知道已经有这样的问题了,但是那里的上下文非常不同,可能是因为旧的.NET MVC版本。当我击中本地主机上的路由No type was found that matches the controller named 'employee'时,我得到了错误"/api/employee/5"。整个路由类似于"127.0.0.1:8080/api/employee/5“。位于"127.0.0.1
我的控制器文件夹中有一个TabController.cs。/api/tab'.</MessageDetail>对于一个名为https://api.url.com/api/footer的控制器,我有相同的文件夹结构,并且能够成功地访问Footer。API configuration and services
// Web