I am a newbie to Spring framework. In my Spring application there are some details as below those details needs to be maintain in a properties file.
Transaction Name Transaction Id
TXT_CCO = 70001
TXT_CCI = 70002
TXT_SSM = 20005
In my controller, there is an action as below.
@RequestMapping(value = {"/ValidateWalletAmount**"}, method = RequestMethod.GET)
public @ResponseBody String validateWalletAmount(@RequestParam("mobile") String mobile,
@RequestParam("pin") String merchant_pin,
@RequestParam("provider") String provider,
@RequestParam("currency_type") String currency_type,
@RequestParam("amount") String amount) {
//TO DO - Get txnTypeId by provider
return "02 | 1000.00 | 0.00";
}
According to the request parameter provider I need to get the relevant transaction type id. As an example, if the provider is TXT_CCO transaction type id should be 70001.
Can someone please help me to achieve this