I develop java application using Spring 3.0.5 and I work with database Oracle using mybatis-spring.
I\'ve an interface for mybatis:
public interface
I found solution. Map must be user instead of two parameter in canCustomerSubscribe method.
void canCustomerSubscribe(Map params);
mybatis xml content:
(I need to add the commas between arguments attributes)
calling it from subscribe service method:
public void subscribe(String msisdn) throws InvalidArgumentException {
Map params = new HashMap();
params.put("msisdn", msisdn);
params.put("responseCode", null);
subscriberMapper.canCustomerSubscribe(params);
System.out.println(params.get("responseCode"));
}