"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,自動加載才生效,它會把,這個自動加載寫入 自動加載的配置文件中.php