GithubHelp home page GithubHelp logo

boyalearn / euexcel Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 51 KB

EuExcel是一个非常容易使用的Excel导入导出工具。只需要配置对需要导出的实体Bean的属性值加上简单的注解就可以对Excel表格写入或者读取。

Java 100.00%

euexcel's Introduction

euexcel

简介

一个易于使用的Excel导入导出工具

使用说明

第一步 创建实体bean

public class User {

@Cell(name="姓名",order=1,cellWidth=400)
private String name;

@Cell(name="年龄",order=0,cellWidth=400)
private Integer age;

public String getName() {
	return name;
}

public void setName(String name) {
	this.name = name;
}

public int getAge() {
	return age;
}

public void setAge(int age) {
	this.age = age;
}

}

第二步 使用EuExcel进行Excel的读写

public class EuExcelTest {

@Test
public void testOne(){
	List<User> list=new ArrayList<User>();
	User user=new User();
	user.setName("erwer");
	user.setAge(18);
	list.add(user);
	new EuSimpleExcel<User>(User.class).write("F:\\demo.xls", list, "用户列表");
}

@Test
public void testTwo(){
	List<User> list=new ArrayList<User>();
	list=new EuSimpleExcel<User>(User.class).read("F:\\demo.xls");
	System.out.println(list);
}

}

设计图

avatar

euexcel's People

Contributors

boyalearn avatar

Stargazers

xushuanglu avatar  avatar 咸鱼狗子 avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

jlcxxzj

euexcel's Issues

首次发布版本说明

首次版本发布的版本可能会存在部分Bug,使用过程中慢慢修复Bug。
后期优化方向为支持更多的功能、性能优化、Bug修复等。
EuExcel的目标是使Excel表格的导入导出更加容易使用。同时也是为了提高日常开发效率。目前机构设计还存在一些问题。希望路过的有兴趣的同学一起讨论(就代码解耦设计、扩展性设计方面)。 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.