mybatis中实现mysql分页以及别名
?不允许在关键字前后进行数学运算,需要在代码中计算完成后传递到mapper.xml中
package com.ning.test;
import com.ning.pojo.People;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Test {
public static void main(String[] args) throws IOException {
InputStream is