WhoopieeMerchantAppContactGroupModel group_model = new WhoopieeMerchantAppContactGroupModel();
boolean result = group_model.checkGroupName(groupName);
if(result)
{
writer.write("true");
writer.flush();
writer.close();
}
else
{
writer.write("error");
writer.flush();
writer.close();
}
System.out.println("here sirji");
group_model.createGroup(groupName, dto_list, store_id);
System.out.println("here sirji at the end");
这是我的代码,我想当编写器发送true或error结果时,创建组函数调用将在后台执行。但它显示处理直到creategroup函数没有完成执行。有没有办法让我可以退出该servlet并让后台执行