我在一个对象中使用UriInfo,我在请求中对params进行了验证,我做了以下操作,但是我仍然得到了null,searchCount值是空的,但是我设置了DefaultValue,如下所示:private final String LONGITUDE = "lon";private final @DefaultValue("10000") String RANGE = "range";
我需要在rest中创建一个自定义url。我正在使用fos rest包。http://myapi.com/api/v1/public/users/confirm?cd=<some_code>.json@GET("/users/confirm?cd={cd}")php /app/console route:debug...get_confirm GET ANY ANY /api/v1/public/users/confirm?cd={cd}.{_format}...
但是在我的测