Mapper映射文件解析 resultType

resultType 設置參數類型 設置返回值類型 (1)返回簡單類型 8大基本類型+String (2)返回pojo domain Student (3)返回hashmap(注意返回值類型) (4)當查詢字段名和pojo屬性名不一致時的解決方案 a.爲字段起別名,別名爲類中屬性名 selectid,fullname as name,agefrom tbl_student1 b.使用resultM
相關文章
相關標籤/搜索