Hi, is it possible to pass mapping paths as array? I tried this, but with no success:
... compiler says: incompatible types - found: String[], required: StringCode:private static final String[] COMMISSION_LIST = {"commissionList.htm", "openCommissionList.htm", "closeCommissionList.htm", "stornoCommissionList.htm"}; ... @RequestMapping(value=COMMISSION_LIST, method=RequestMethod.GET)
but this works:
Any idea how to get it work, please? (I know that I can use the latter code, but I need to use COMMISSION_LIST on few other places, so it should be less error prone if I can use array constant).Code:@RequestMapping(value={"commissionList.htm", "openCommissionList.htm", "closeCommissionList.htm", "stornoCommissionList.htm"}, method=RequestMethod.GET)
Best regards, Pavla Novakova


Reply With Quote
