日常工作问题、异常记录

200 阅读1分钟
  • 下发参数无异常,却下发失败:检查参数 大小写是否不同

    {
        "netCard": [// 全是小写的参数,这里却大写了
            {
                "name": "enp5s0",
                "ipaddr": "10.10.40.241",
                "netmask": "255.255.255.0"
            }
        ]
    }
    
  • 报错:# [Data truncation: Data too long for column 'logo' at row 1](stackoverflow.com/questions/2…)

    原因:字符串过长,数据库默认字符串长度为255,可以通过以下注解更改

    @Column(columnDefinition="TEXT") 或者 @Column(length=1000)
    public String getVipRecord() {
       return vipRecord;
    }
    
  • 验证码不显示、显示为空白

    原因:看看系统的字体库是不是缺了;freeType是不是缺了;

  • PO类上不能加isxx,getxx类似的方法,否则找不到方法对应的属性值