code: protected String saveAndForward(Entity<?> entity) {
      try {
        if (entity instanceof TimeEntity) {
          TimeEntity timeEntity = (TimeEntity) entity;
          timeEntity.setUpdatedAt(new Date());
        }
        saveOrUpdate(Collections.singletonList(entity));
        return redirect("search", "info.save.success");
      } catch (Exception e) {
        logger.info("saveAndForwad failure", e);
        return redirect("search", "info.save.failure");
      }
  
    }
docs: 保存对象
  
  @param entity