代码拉取完成,页面将自动刷新
这是一个基于Spring Boot的Word文档处理项目,使用Apache POI库来创建、读取和修改Word文档。
my-apache/
├── src/
│ ├── main/
│ │ ├── java/
│ │ │ └── org/
│ │ │ └── example/
│ │ │ ├── Main.java # 应用程序入口
│ │ │ ├── controller/
│ │ │ │ ├── WordController.java # 基本Word操作控制器
│ │ │ │ └── AdvancedWordController.java # 高级Word操作控制器
│ │ │ └── service/
│ │ │ ├── WordService.java # 基本Word操作服务
│ │ │ └── AdvancedWordService.java # 高级Word操作服务
│ │ └── resources/
│ └── test/
├── word-files/ # 生成的Word文档存储目录
├── word-templates/ # Word文档模板目录
└── pom.xml # Maven配置文件
POST /api/word/create
- 创建简单Word文档
GET /api/word/read
- 读取Word文档内容
POST /api/word/advanced/create-table
- 创建包含表格的Word文档
POST /api/word/advanced/create-with-image
- 创建包含图片的Word文档
POST /api/word/advanced/create-from-template
- 基于模板创建Word文档
POST /api/word/template/generate
- 生成示例Word模板文件
POST http://localhost:8080/api/word/create?fileName=test&title=测试文档&content=这是一个测试文档内容
POST http://localhost:8080/api/word/advanced/create-table?fileName=table-test&title=表格测试文档
POST http://localhost:8080/api/word/template/generate?templateName=sample-template
POST http://localhost:8080/api/word/advanced/create-from-template?templateName=sample-template&outputName=template-output
word-files
和word-templates
目录word-templates
目录中有对应的模板文件此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。