找到Providers文件下的RouteServiceProvider文件,然后找到 protected $namespace = 'App\\Http\\Controllers'; 把这块注释去掉就OK了。如果没找到就添加上。