Guest User

Untitled

a guest
Jan 21st, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. @RequestMapping(method = RequestMethod.POST, value = "/auditregistry/collectionentry/cid/{cid}/collid/{collid}/colldt/{collectiondate}/amount/{amt}")
  2.  
  3. public ModelAndView saveManualCollection(@PathVariable("cid") Integer custId, @PathVariable("collid") Integer collRtId, @PathVariable("collectiondate") String dt, **@PathVariable("amt") String amount**) throws Exception
  4. {
  5. debug("amount recieving=="+amount);
  6.  
  7. @Configuration
  8. class Cfg extends WebMvcConfigurationSupport {
  9.  
  10. @Override
  11. public RequestMappingHandlerMapping requestMappingHandlerMapping() {
  12. final RequestMappingHandlerMapping mapping = super.requestMappingHandlerMapping();
  13. mapping.setUseSuffixPatternMatch(false);
  14. return mapping;
  15. }
  16.  
  17. }
  18.  
  19. @RequestMapping(method = RequestMethod.POST, value = "/auditregistry/collectionentry/cid/{cid}/collid/{collid}/colldt/{collectiondate}/amount/{amt:.*}")
Add Comment
Please, Sign In to add comment