Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Java library for mapping Excel sheets to POJO
branch: master

Merge pull request #3 from ssogabe/ignoreNotFoundSheet

ignoreSheetNotFound not work correctly
latest commit 5fba9c5b27
@takezoe authored
Failed to load latest commit information.
src ignoreSheetNotFound not work correctly
.classpath Initial Commit.
.gitignore Ignore target directory.
.project Initial Commit.
LICENSE Initial commit fixed typo
command.bat Initial Commit.
eclipse.bat Initial Commit.
excel.png Initial Commit.
pom.xml Update version to 1.2.5.


XLSBeans is a Java library for mapping Excel sheets to POJO.


To use XLSBeans, add the following dependency to your pom.xml:

    <name>Project Amateras Maven2 Repository</name>


Getting Started

For example, here is one Excel sheet.

Sample Excel

Map this Excel sheet to POJO using @HorizontalRecords and @LabelledCell.

public class UserList {

  @LabelledCell(label="Title", type=LabelledCellType.Right)
  public String title;

  @HorizontalRecords(tableLabel="User list", recordClass=User.class)
  public List<User> users;


And the following is the record class. Properties of the record class is mapped to columns by @Column.

public class User {

  public int id;

  public String name;

  @Column(columnName="Gender", merged=true)
  public String gender;


You can get the mapped POJO using XLSBeans#load() like following:

UserList userList = (UserList)new XLSBeans().load(
  new FileInputStream("example.xls"), UserList.class);


See more details in

Something went wrong with that request. Please try again.