使用Symfony2和FOSRestBundle,我尝试实现在路由中定义了一些固定参数的API方法,以及查询字符串中可能存在的一些可选参数。x=1&y=2 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use FOS\RestBundle\C
但在rest中收到的值始终为null。有人能告诉我我错过了什么吗?MediaType.APPLICATION_JSON) public Response changePassword(@QueryParam("id") int id,
@QueryParam("password") String passw