1.先展示public下目录文件和config.default.js文件
2.成功启动egg.js,端口为9999
3.输入http://localhost:9999界面返回404
输入http://localhost:9999/index.html则正常返回前端界面
4.前端路由正常跳转到http://localhost:9999/device_monitor
但是在地址栏回车之后
问题:为什么http://localhost:9999这样不能直接访问到前端界面,为什么我在地址来回车http://localhost:9999/device_monitor路径会又出现找不到。
后台没配'/device_monitor'的路由,所以404了, 可以配个全局匹配路由