240 发简信
IP属地:甘肃
  • Java线程池_Future与Callable原理分析

    当我们创建一个线程时,我们想获取线程运行完成后的结果,一般使用回调的方式。例如: 运行结果: 这种方式的实现有三个缺点: 必须要创建回调接口。而且线程运行中可能产生异常,那么...

  • 120
    Java9 手把手教你实现模块化

    IntelliJ IDEA 2017.1 支持Java9的模块化特性 (Project Jigsaw)。 在此版本,模块文件中还支持基于特定名称与关键字的自动补全功能 cod...

  • @小尘哥 好的,我在看看

    【springboot+easypoi】一行代码搞定excel导入导出

    我们不造轮子,只是轮子的搬运工。(其实最好是造轮子,造比别人好的轮子) 开发中经常会遇到excel的处理,导入导出解析等等,java中比较流行的用poi,但是每次都要写大段工...

  • 你好,如果导出Excel时,对header颜色和cell单元格设置样式,应该怎么做,我没有找到

    【springboot+easypoi】一行代码搞定excel导入导出

    我们不造轮子,只是轮子的搬运工。(其实最好是造轮子,造比别人好的轮子) 开发中经常会遇到excel的处理,导入导出解析等等,java中比较流行的用poi,但是每次都要写大段工...

  • @小尘哥 Thanks♪(・ω・)ノ,问题已解决!

    【springboot+easypoi】一行代码搞定excel导入导出

    我们不造轮子,只是轮子的搬运工。(其实最好是造轮子,造比别人好的轮子) 开发中经常会遇到excel的处理,导入导出解析等等,java中比较流行的用poi,但是每次都要写大段工...

  • @小尘哥 package com.zhet.stategrid.other.entity;

    import java.util.Date;

    import javax.persistence.Table;

    import cn.afterturn.easypoi.excel.annotation.Excel;

    @Table(name = "person")
    public class Person {

    @Excel(name = "姓名", orderNum = "0")
    private String name;

    @Excel(name = "性别", replace = { "男_1", "女_2" }, orderNum = "1")
    private String sex;

    @Excel(name = "生日", exportFormat = "yyyy-MM-dd", orderNum = "2")
    private Date birthday;

    public Person(String name, String sex, Date birthday) {
    this.name = name;
    this.sex = sex;
    this.birthday = birthday;
    }

    public String getName() {
    return name;
    }

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

    public String getSex() {
    return sex;
    }

    public void setSex(String sex) {
    this.sex = sex;
    }

    public Date getBirthday() {
    return birthday;
    }

    public void setBirthday(Date birthday) {
    this.birthday = birthday;
    }

    }

    【springboot+easypoi】一行代码搞定excel导入导出

    我们不造轮子,只是轮子的搬运工。(其实最好是造轮子,造比别人好的轮子) 开发中经常会遇到excel的处理,导入导出解析等等,java中比较流行的用poi,但是每次都要写大段工...

  • 在Excel导入时,把下载的数据上传时报这个错误

    【springboot+easypoi】一行代码搞定excel导入导出

    我们不造轮子,只是轮子的搬运工。(其实最好是造轮子,造比别人好的轮子) 开发中经常会遇到excel的处理,导入导出解析等等,java中比较流行的用poi,但是每次都要写大段工...

  • 你好,麻烦看下我这个为什么报上述错误

    【springboot+easypoi】一行代码搞定excel导入导出

    我们不造轮子,只是轮子的搬运工。(其实最好是造轮子,造比别人好的轮子) 开发中经常会遇到excel的处理,导入导出解析等等,java中比较流行的用poi,但是每次都要写大段工...

  • java.lang.InstantiationException: com.zhet.stategrid.other.entity.Person
    at java.lang.Class.newInstance(Unknown Source)
    at cn.afterturn.easypoi.util.PoiPublicUtil.createObject(PoiPublicUtil.java:98)
    at cn.afterturn.easypoi.excel.imports.ExcelImportServer.importExcel(ExcelImportServer.java:208)
    at cn.afterturn.easypoi.excel.imports.ExcelImportServer.importExcelByIs(ExcelImportServer.java:389)
    at cn.afterturn.easypoi.excel.ExcelImportUtil.importExcel(ExcelImportUtil.java:62)
    at com.zhet.stategrid.util.FileUtil.importExcel(FileUtil.java:74)
    at com.zhet.stategrid.other.controller.TestEasypoiExcel.importExcel(TestEasypoiExcel.java:52)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
    at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
    at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
    at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)

    【springboot+easypoi】一行代码搞定excel导入导出

    我们不造轮子,只是轮子的搬运工。(其实最好是造轮子,造比别人好的轮子) 开发中经常会遇到excel的处理,导入导出解析等等,java中比较流行的用poi,但是每次都要写大段工...