启用属性路由:

1.在WebApiConfig中加入如下代码:

//属性路由
config.MapHttpAttributeRoutes();

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAi4AAAEvCAIAAADtnN2wAAAZDUlEQVR4nO3dy5XkKBqGYTlRVpQDY167UDa0AeXXLGc7C80ip6NI/gs/Fwkh3ufEqaMkEBAX8SVEdvRxnudxHCcAAJMcJ1EEAJjqIIcAAHOxKgIATEYUAQAmI4oAAJMRRQCAyf4fRaQRAGAWEggAMBlRBACYjCgCAExGFAEAJiOKAACTEUV4Fv6Yc3O8AfY051U/jlN9v32VW3c9zW1Dsjqynqt/7v2mo/f7nvpPXz9//f66Zcf9Pq01N6ieO2p4beb2rlLfdcH3Emm0oWkvuTuHTh5Ac837+WNLL+mrL+8h7aeNpNOrdewX+tXapu/PWVNm/wdGjurzOra9K4iiDRFFI2ve701RlLUwPIqGzOOsfiKGvxnweiNf78/2Wrpx5B+rW0xZiVPN2dBzaqrjVPuyavYMSW3KarbzsVsbdH5h+iuttc2S3uXsBMrC7KyscvqjjJ90by1dncQLrSdKPf38vhentinPleVWU05f1pAaevd7sagvqPr2OL+/lNabIfheSsuLg8SbDH69s2m0tlD9sVinNB1Hz4rXvGJI8SekpiPlOwazCcI6UOtbpxdPVNPI78iZfOW5/oc3n1lYnqjWPEVa+L3L8uK5Mk6KQ2ro/Qw8Isl/h2SFfgWnZatxvwW81RuiKDKq4torq9wZRcXxyOProugU04T8VbRqUrB+vVWrqb8g+6P90rlB1x9F8d5leW0UWW1GYtjpPTISqfiLQjF+iCLU2iKKGnq5NIo+lYPrsOFRZFWOLFas8vhsskMUnd1rnSFrstp2vtwWRWf9uw5vdWsUHYdSeJZm3mKd0nRcMbxgzc4hfSrcFkXpcbHQacQ6XW2qdp7K7ipO3H5hwynFwrMpDNTG/TarHrv/Y2cUxd82Pasivxp2MD6KDvvPAeTBYXxKf2gf5luV24aUDsYfgKzZOaRPZWuo8Y6c7uQWXHYs5wW5k6Zu5amnZ11E2lTH/H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在Global.asax.cs里修改WebApiConfig.Register(GlobalConfiguration.Configuration)为GlobalConfiguration.Configure(WebApiConfig.Register)

注释:如果不修改会报错(原因暂不明确猜测是高版本才可使用属性路由,烦请知道的人回答一下此问题,感谢!)

此时已经启用,可以在Action上加如:

[Route("api/wyb/test")]

访问为http://localhost:13855/api/wyb/test

每个都要写个api比较麻烦可以在Controller上加一个[RoutePrefix("api")],如此Action只需要[Route("wyb/test")]就可以。当然前缀可是[RoutePrefix("api/test")]等等

这样的话要是有其中某个Action不同可以使用一个波浪符号重写路由前缀[Route("~/api/wyb/test")]

除此之外还可以设置名称:[Route("wyb/test",Name="testName")]  (还未验证name可以如何使用)

WebApi(三)-属性路由 自定义访问路径的更多相关文章

  1. Flask初级(二)为flash创建路由,访问路径。

    Project name :Flask_Plan 上一篇文章,我们创建了默认的flask项目,也可以运行起来. 但是只有一个首页,只显示一个hello world. 现在我们创建访问路由,也就是访问地 ...

  2. centos7一步一步搭建docker jenkins 及自定义访问路径重点讲解

    系统环境:centos7.7 (VMware中) 镜像image 版本:jenkins/jenkins (截止2020.01.10最新版) 参考文章:https://www.jianshu.com/p ...

  3. Web API中的路由(二)——属性路由

    一.属性路由的概念 路由让webapi将一个uri匹配到对应的action,Web API 2支持一种新类型的路由:属性路由.顾名思义,属性路由使用属性来定义路由.通过属性路由,我们可以更好地控制We ...

  4. Spring boot 默认静态资源路径与手动配置访问路径

    在application.propertis中配置 ##端口号server.port=8081 ##默认前缀spring.mvc.view.prefix=/## 响应页面默认后缀spring.mvc. ...

  5. Spring boot 默认静态资源路径与手动配置访问路径的方法

    这篇文章主要介绍了Spring boot 默认静态资源路径与手动配置访问路径的方法,非常不错,具有参考借鉴价值,需要的朋友可以参考下   在application.propertis中配置 ##端口号 ...

  6. springboot系列三、springboot 单元测试、配置访问路径、多个配置文件和多环境配置,项目打包发布

    一.单元测试 生成的demo里面包含spring-boot-starter-test :测试模块,包括JUnit.Hamcrest.Mockito,没有的手动加上. <dependency> ...

  7. WebApi 2:属性路由 [Route()],attribute routing

    原文:http://www.asp.net/web-api/overview/web-api-routing-and-actions/attribute-routing-in-web-api-2 属性 ...

  8. MVC 5 属性路由中添加自己的自定义约束

    介绍约束 ASP.NET MVC和web api 同时支持简单和自定义约束,简单的约束看起来像: routes.MapRoute("blog", "{year}/{mon ...

  9. SpringBoot系列三:SpringBoot基本概念(统一父 pom 管理、SpringBoot 代码测试、启动注解分析、配置访问路径、使用内置对象、项目打包发布)

    声明:本文来源于MLDN培训视频的课堂笔记,写在这里只是为了方便查阅. 1.了解SpringBoot的基本概念 2.具体内容 在之前所建立的 SpringBoot 项目只是根据官方文档实现的一个基础程 ...

随机推荐

  1. Android解析qq聊天记录表情

    偶然在一个需求中需要解析qq聊天记录表情,表情的格式是以/开始,比如:你好啊?/微笑,在网上找了半天,也没能找到一个比较合适的,所以准备自己实现一下,首先要将表情图片和表情字符对上号,我想了几种解决方 ...

  2. chrome 插件 vimium 快捷键大全

    DESCRIPTION vimium是一款让你在chrome浏览器能方便地使用键盘操作浏览器的插件.虽然和firefox相比还有些许不足(比如不能按到一些按钮之类的),但是vimium还是做到了能在9 ...

  3. 用CSS border相关属性画三角形

    效果 watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQva2l3aV9jb2Rlcg==/font/5a6L5L2T/fontsize/400/fill/I0J ...

  4. mybatis13 resultMap

    resultMap(入门) resultType :指定输出结果的类型(pojo.简单类型.hashmap..),将sql查询结果映射为java对象 . 使用resultType注意:sql查询的列名 ...

  5. \n 与 \r

    符号 ASCII码 意义 \n 换行NL \r 回车CR 回车 \r 本义是光标重新回到本行开头,r的英文return,控制字符可以写成CR,即Carriage Return 换行 \n 本义是光标往 ...

  6. Hibernate 配置派生属性

    在持久化类中,有些属性在表中没有对应的字段,可以在映射文件中设置派生属性. 比如在一个订单中有多个商品的价格,但没有计算总的价格,可以在持久化类中增添一个统计总价格的属性,在映射文件中配置一些信息. ...

  7. Windows Server 2008 R2中关闭“IE增强的安全配置”

    当在Windows Sever 2008 R2中运动IE8的时候会发现默认情况下IE启用了增强的安全配置,为了方便而且是在内网的情况下我们可以关闭IE8的增强安全配置,操作很简单如下步骤. 一,以本机 ...

  8. php 5.3起弃用session_register

    最近下了dedecms V5.7时,在登陆后台时,用户名和密码也没错,就是跳转不走,进不了后台管理页面,追踪了好久才发现根目录/include/userlogin.class.php中289行左右的位 ...

  9. asp.net页面刷新等问题

    windows.open 关闭当前页面刷新父页面实现() { 在子页面中 Page.ClientScript.RegisterStartupScript(this.GetType(), "a ...

  10. css:nth-of-type()选择器用法

    今天做一个页面,无意中看到这个nth-of-type感觉挺方便的,之前单双行有的有横线,有的无横线一般在html中单独再写border-right:none等之类的.现在发现这个好东西赶紧记录下来. ...