Exemplo n.º 1
0
  @Override
  public List<User> echoList() {
    User user = new User();
    user.setId("1");
    user.setName("xiaozhi");

    User user1 = new User();
    user1.setId("2");
    user1.setName("xiaoran");

    List<User> returnList = Arrays.asList(user, user1);
    return returnList;
  }
Exemplo n.º 2
0
  @Override
  public ListPage<User> echoPage() {
    User user = new User();
    user.setId("1");
    user.setName("我的商标没有注册,<font color='red'>商品</font>没法保证");

    User user1 = new User();
    user1.setId("2");
    user1.setName("xiaoran");

    List<User> returnList = Arrays.asList(user, user1);

    return new ListPage<User>(returnList, 0, 1, 2);
  }