开发问题bug记录

mybatis xml文件写sql时结尾不要添加分号

通过创建触发器 定位问题代码所在位置

create or replace trigger tri_name --触发器名称 
  before insert or update  --操作与操作时间  before after  insert update delete
  on table_name--表名
  for each row
declare
  -- local variables here
begin
  IF :new.table_id=0  -- 满足条件时 RAISE_APPLICATION_ERROR抛出异常 
    THEN
      RAISE_APPLICATION_ERROR('-20000', '异常信息');
  end if;
end tri_replenishment;
​```sql

EntityUtils.toString(HttpEntity entity, String defaultCharset)方法中操作的是流数据,流数据是一次性数据所以同一个HttpEntity不能使用多次该方法.

原文地址:https://www.cnblogs.com/wuloucha/p/13683459.html