请求url都是类似:/api/area/province.list
我们默认建立的Asp Net WebApi 服务时,如果请求url包含“.”,则返回404错误。
解决办法:
需要在web.config文件中添加如下节点。
<configuration>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>