Jakeuj's Notes master Help

ABP.IO 烤肉串命名(Kebab case) {id="ABP-IO-Kebab-Case-Naming"}

Workaround to camelCase (去連字號)

結論

Configure<AbpAspNetCoreMvcOptions>(options => { options.ConventionalControllers .Create(typeof(YoApplicationModule).Assembly, opts => { opts.UseV3UrlStyle = true; }); });

情境

Url 慣例使用 Kebab case(烤肉串命名)

But,人生中最重要的就是這個 But !

種種原因需要去除連字號時可以切回舊版本 UseV3UrlStyle

route-4

Kebab case

route-before-4

camel Case

參照

abp camelCase route parts become kebab-case

常見重點整理 - 命名慣例 & 開發時注意事項 - HackMD

Jakeuj

PS5

  • ABP

  • 回首頁

本文章從點部落遷移至 Writerside

14 October 2025