15.Mybatis多對一處理

1.查詢所有學生信息以及對應的老師(多對一) 1.1. StudentMapper接口編寫查詢方法 Public interfaceStudentMapper{ //查詢所有學生信息以及對應的老師信息 Public List<Student>getStudent(); } 1.2.StudentMapper.xml文件編寫sql查詢語句 <select id="getStudent" result
相關文章
相關標籤/搜索