使用弹簧RestController我有以下映射设置:对PathVariable是否为零有效?
@RequestMapping(value="/question/{orderformid}/{qstnum}", method=RequestMethod.POST)
但是,当我有这个网址:
http://localhost:8080/question/5477bdf6153d38c711074083/0
我得到一个错误的qstnum:
缺少URI模板变量'qstNum'用于方法参数类型 int
对于路径变量是否有零?
你的方法签名是什么? – RE350 2014-12-04 08:27:17