application下route.php文件修改为路由模式,不用数组模式
config.php里面可设置'route_config_file'为强制路由

use think\Route;
Route::rule("hello","sample/Test/hello");

Route::rule('路由表达式','路由地址','请求类型','路由参数(数组)','');
请求类型:GET,POST,DELETE,PUT,*

Route::rule('hello','sample/Test/hello','GET|POST',['https'=>false]);
Route::get('hello','sample/Test/hello')
Route::any('hello','sample/Test/hello')