SQL映射文件中有如下配置:<br class="markdown_return">&lt;select id="selectA

分类: SSM第一单元 发布时间: 2024-01-20 21:47 浏览量: 1

SQL映射文件中有如下配置:
<select id="selectAll" resultType="com.bawei.pojo.Account">
Select * from account
</select>
则Mapper接口中与之对应的方法声明为()?

A.public void selectAll();

B.public List<Account> selectAll();

C.public void selectAll(Account account);

D.public void selectAll(List<Account> account);

正确答案是B