路由配置文件多次被执行,正常吗

muvtou

问题描述

这里写问题描述

路由配置文件多次被执行,正常吗

这里粘代码或配置


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']);
});
683 1 0
1个回答

xiuwang

每个进程各加载一次,所以是多次

年代过于久远,无法发表回答
🔝