1、生成mapper pojo
使用 generatorSqlmapCustom生成
2、编写接口类
package com.sundablog.service;
import java.util.List;
import com.sundablog.pojo.AdminUser;
public interface TestService {
/**
* 查询全部管理员
* @Title: selectAdmin
* @Description: TODO(这里用一句话描述这个方法的作用)
* @param: @return
* @return: List<AdminUser>
* @throws
*/
List<AdminUser> selectAdmin();
}
3、编写接口类
package com.sundablog.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;