# note-easyexcel-spring **Repository Path**: xiaobowen-hz/note-easyexcel-spring ## Basic Information - **Project Name**: note-easyexcel-spring - **Description**: 一个关于 EasyExcel 的学习笔记与示例项目仓库。EasyExcel 是阿里巴巴开源的一款基于 Java 的简单、省内存的读写 Excel 的工具。 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-10-19 - **Last Updated**: 2025-04-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: SpringBoot, easyExcel ## README # note:EasyExcel #### 介绍 `SpringBoot`集成`EasyExcel`笔记 #### 环境准备 一、Mysql(略...) #### 使用说明 1. 修改配置文件`application.yaml` - 数据库连接配置,主要用来装配事务模板,**必须更改为真实配置** ```yaml spring.datasource.url=jdbc:mysql://localhost:3306/study_home?serverTimezone=UTC spring.datasource.username=root spring.datasource.password=root spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver ``` - 修改导出图片的目录,用来演示图片的导出 ```yaml photo.imagePath=D:\huan\note-easyexcel-lab\easyexcel-work\src\main\resources\static\photo photo.imageName=profile_small.jpg ``` 2. 启动服务 3. 访问接口: - 固定属性导出:`http://localhost:8080/easy/excel/export` - 导入固定属性:`http://localhost:8080/easy/excel/import` - 固定属性导出:`http://localhost:8080/easy/excel/temp/export` - 导出时间轴:`http://localhost:8080/easy/excel/day/axis/export` - 可变属性导出:`http://localhost:8080/easy/excel/variable/temp` - 分身式填充导出:`http://localhost:8080/easy/excel/fill/share` - 组合式填充导出:`http://localhost:8080/easy/excel/fill/merge` - 合成式填充导出:`http://localhost:8080/easy/excel/fill/synthetic` #### 目录结构 ``` ├── //business - 模拟业务 │ ├── listener - 导入监听器 │ ├── template - 业务模板(固定填充流程) │ ├── configure - 配置类 │ ├── service - 业务 │ └── controller - 对外访问接口 ├── //api - EasyExcel API │ ├── annotation - 自定义注解 │ ├── converter - 类型转换器 │ ├── handler - 自定义处理器 │ └── listener - 统一监听器 ├── //common - 通用业务 │ ├── constant - 常量类 │ ├── enums - 枚举类 │ ├── exception - 异常类 │ ├── function - 函数接口 │ ├── valid - 校验类 │ └── domain - 数据模型 ```