自动加载自动加载可以在composer.json内进行配置。如: { "autoload": { "psr-4": { "App\\" : "App/", "EasySwoole\\" : "Conf/", "YourTest\\":"tests/" }, "files":["lib/ClassTest.php"] }} 更详情文档请见,composer官方文档。https://getcomposer.org/doc/