Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

动态指定导出excel文件名报错 #40

Open
taiziye opened this issue Oct 10, 2022 · 1 comment
Open

动态指定导出excel文件名报错 #40

taiziye opened this issue Oct 10, 2022 · 1 comment

Comments

@taiziye
Copy link

taiziye commented Oct 10, 2022

当使用Spel动态指定导出excel的文件名时,
@ResponseExcel(name = "#{T(java.lang.Math).PI * 80}", sheets = @sheet(sheetName = "导出数据"))

报错“org.springframework.expression.spel.SpelParseException: Expression [#{T(java.lang.Math).PI * 80}] @1: EL1043E: Unexpected token. Expected 'identifier' but was 'lcurly({)'”

@livk-cloud
Copy link

他这个spEL表达式解析做的比较简单,复杂的表达式无法解析的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants