我有一個ASP.NET Core web API;這是一個簡單的休息界面。調試asp.net核心API/REST應用程序:更改defauilt路徑
在項目屬性,我有這樣的路徑:
,但是當我在調試器啓動,它總是轉到:
http://localhost:58187/api/values
調試器加載時瀏覽器,在這裏是網址:
data:text/html;charset=utf-8,<head><meta http-equiv="refresh" content="0; url=http://localhost:58187/api/values"/></head><body><style>body{margin:25px;font:16px calibri,'segoe ui'}</style><h3>Chrome script debugging in Visual Studio is enabled</h3><ul><li>Set breakpoints in JavaScript/TypeScript in Visual Studio</li><li>Automatically break on script errors</li><li>Opening developer tools in Chrome stops the script debugging session</li></ul><a href='https://aka.ms/chromedebugging' target='_blank'>Learn more about Chrome debugging in Visual Studio</a><h4><i>Your application is starting...</i></h4></body><!---->
我可以看到api/values
初始Url中的字符串。
如何更改api/values
字符串?