我的控制器类是
@RequestMapping(method = RequestMethod.POST, value = "/auditregistry/collectionentry/cid/{cid}/collid/{collid}/colldt/{collectiondate}/amount/{amt}")
public ModelAndView saveManualCollection(@PathVariable("cid") Integer custId, @PathVariable("collid") Integer collRtId, @PathVariable("collectiondate") String dt, **@PathVariable("amt") String amount**) throws Exception
{
debug("amount recieving=="+amount);
我传递给 url 的值是
/auditregistry/collectionentry/cid/9991/collid/10/colldt/20120726/amount/ $14.55
当我尝试将金额值打印为“$14”而不是“$14.55”时,我应该如何打印实际值“$14.55”
任何帮助都非常感谢