这里写问题描述
路由配置文件多次被执行,正常吗
这里粘代码或配置
use Webman\Route;
echo 'route.'.echoTime();
Route::any('', [app\content\controller\IndexController::class, 'index']);
Route::group('/system', function () {
Route::resource('/role', app\system\controller\RoleController::class, ['list','save','delete','ceshi2']);
Route::resource('/department', app\system\controller\DepartmentController::class, ['list','save','delete']);
});
每个进程各加载一次,所以是多次
感谢你的解惑