try {
//2.给店铺信息赋初始值
shop.setEnableStatus(0);
shop.setCreateTime(new Date());
shop.setLastEditTime(new Date());
//3.添加店铺信息
int effectedNum=shopDao.insertShop(shop);
throw new ShopOperationException(“店铺创建失败”);
} catch (Exception e) {
return new ShopExecution(ShopStateEnum.CHECK, shop);
}
我打开 return new ShopExecution(ShopStateEnum.CHECK, shop);才不会juit异常,直接return null;不行的
SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需
了解课程