解决调用url带有英文句号(.)导致asp.net api路由失败(404)的问题

<configuration>
    <system.webServer>
        <modules runAllManagedModulesForAllRequests="true" />

参考文章:

http://stackoverflow.com/questions/20998816/dot-character-in-mvc-web-api-2-for-request-such-as-api-people-staff-45287

http://www.seankenny.me/blog/2014/06/04/web-api-with-dot-in-the-route/

 

posted @ 2017-03-21 16:31  麦仲肥  阅读(361)  评论(0编辑  收藏  举报