"autoload": { "classmap": [ "database" ], "psr-4": { "App\\": "app/" }, "files":[ "app/Common/function.php", "api/qqOauth/qqConnectAPI.php" ] },
比如我新增了一个qq的登录api(api/qqOauth/qqConnectAPI.php),引用上一直不生效,必须执行composer dump-autoload,自动加载才生效,它会把,这个自动加载写入 自动加载的配置文件中.