鼎鼎知识库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

05.本地调试.md 838B

5 jaren geleden
123456789101112131415161718192021
  1. - 先查看,DD.Electricity.Cloud.AuthServer项目下的launchSettings.json的ASPNETCORE_ENVIRONMENT属性值是Development
  2. - 再查看DD.Electricity.Cloud.WebUI项目下的launchSettings.json的ASPNETCORE_ENVIRONMENT属性值是Development
  3. - 启动项目,设置多个项目启动DD.Electricity.Cloud.AuthServer和DD.Electricity.Cloud.WebUI
  4. - 点击生成,点击启动出现界面
  5. - 进入postman,请求测试数据在Get输入http://localhost:5001/api/home/test
  6. - 请求Token,post请求,输入http://localhost:5001/api/auth/token
  7. 在heads输入Content-Type:application/json
  8. 在body输入
  9. ```
  10. {
  11. "userName":"dingding",
  12. "password":"dingding"
  13. }
  14. ```
  15. - 请求首页数据,post请求http://localhost:5001/api/home/index
  16. ```
  17. 在heads中写入
  18. Content-Type:application/json
  19. Authorization: Bearer 这里是Token
  20. ```