导出数据,可以参照以下方法:
1、controller
2、实体类的注解也记得加:
3、serviceImpl没什么特别的地方,只需要把数据查询出来成一个List<entity>返回到controller即可。