1. 解决方法:如图所示,添加路由路径属性,写在请求路径前面;
2.参考资料:
https://forums.asp.net/t/2100905.aspx?attribute+routing+is+possible+with+self+host+