💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
**1. DAO层接口** ```java public interface StudentDao { List<Student> listAll(); } ``` **2. XML映射文件** ```xml <select id="listAll" resultType="student"> select id, `name`, born, gender from student </select> ``` **** 参考文档:https://mybatis.org/mybatis-3/zh/sqlmap-xml.html#Parameters