@ExcelProperty 动态传参
时间: 2023-10-02 07:07:11 浏览: 270
@ExcelProperty可以实现动态传参。通过使用占位符,可以在注解的value属性中动态传入参数来实现动态表头效果。比如,在定义导出实体类时,可以在@ExcelProperty注解的value属性中使用占位符"${title}"来代表动态传入的参数。然后在具体使用@ExcelProperty注解的地方,可以将实际的值传入,从而实现动态表头的效果。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [@ExcelProperty 使用占位符,实现动态表头效果](https://blog.csdn.net/ambition_test/article/details/126237911)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [二、快速入门EasyExcel](https://blog.csdn.net/btt2013/article/details/121501856)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文