@Route(/{id},name="page_test",defaults={"page_num":1},requirements={"page_num"="d+"})
name路由的名称
defaults 设置默认值
requirement 设置路由规则
@Route(/{id},name="page_test",defaults={"page_num":1},requirements={"page_num"="d+"})
name路由的名称
defaults 设置默认值
requirement 设置路由规则