202112-09 Mybatis查询语句返回对象和泛型集合的操作 Mybatis查询语句返回对象和泛型集合EmpMapper映射接口:packagecn.et.mybatis.lesson03;importjava.util.List;importorg.apache.ibatis.annotations.Result;importorg.apache.ibatis.annotations.Results;importorg.apache.ibatis.annotations.Select;publicinterfaceEmpMapper{/***查询单条数据,*每一列的列名都会去Emp实体类中去匹配对应的属性*匹配时会把二边都转为小字母进行匹配*匹配成功就... 继续阅读 >
202010-18 Python如何使用vars返回对象的属性列表 英文文档:vars([object])Returnthe__dict__attributeforamodule,class,instance,oranyotherobjectwitha__dict__attribute.Objectssuchasmodulesandinstanceshaveanupdateable__dict__attribute;however,otherobjectsmayhavewriterestrictionsontheir__dict__attributes(forexample,classesuseadictproxytopreventdirectdictionaryupdates).Withoutanargument,vars()actslik... 继续阅读 >