netcore webapi 加入 swagger

1.nuget Swashbuckle.AspNetCore

 

 

 

2. Startup.cs 中

 

 

 

 3. 默认Controller中:

 

posted @ 2020-05-11 15:12  幸福安康  阅读(118)  评论(0编辑  收藏  举报