将测试数据放到public文件夹 访问时,直接访问http://localhost:8080/mock/index.json,即可 参考:https://zhuanlan.zhihu.com/p/50454771