前言:
在学习和运用node的egg时的报错信息记录。
报错:
![](https://i-blog.csdnimg.cn/blog_migrate/b6d72ca49c682ca2a0e9c46a52fee004.png)
解决办法
确定router.js里面的路由和自己写的Controller相匹配
确定你在controller最后一行写了module.exports= …
个人问题:
router.js里面的文件和路由层级不对
确定router.js里面的路由和自己写的Controller相匹配
确定你在controller最后一行写了module.exports= …
router.js里面的文件和路由层级不对