这两天在用spring进行上传上遇到问题,今天进行了问题的排查,这个过程也增加了我看spring源码的兴趣!还是很有收获的! 首先先给A组提供了上传接口,并没有在spring的配置文件进行multipartResolver的配置,后台Controller的java的获取为: /** *Saves temporary files to the servlet container's temporary directory. Needs to be initialized either by an
说明,这个id是字符串类型,但是实际值是一个整数,获取最大值的方法是: select max(cast(id as SIGNED)) from table 另外,mysql生成伪列的方法: SELECT @rownum:=@rownum+1 AS rownum, t.* FROM (SELECT @rownum:=0) r, ai_label_detail_t t