作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
嗨,我正在使用 grails 导出插件,并在依赖项和 mime 类型中添加了 excel 插件。
我以以下格式传递数据:
FileOutputStream output = new FileOutputStream("C:/dummy/test1.xlsx")
def empDate = [[joindate:2018-01-30,desig:Instructor]]
List fields = ["joindate", "desig"]
Map labels = ["joindate": "Join Date", "desig": "Designation"]
exportService.export("xlsx", output,empDate, fields, labels, [:], [:])
//Throws an error "No Signature of method is allowed for argument types ....."
No signature of method: com.test.ExportService.export() is appl icable for argument types: (java.lang.String, java.io.FileOutputStream, java.util.ArrayLis t, java.util.ArrayList, java.util.LinkedHashMap, java.util.LinkedHashMap, java.util.Linked HashMap) values: [xlsx, java.io.FileOutputStream@10234, [[joindate:2018-01-30, ...]], . ..] Possible solutions: every()
最佳答案
com.test.ExportService.export()
表示您正在使用插件提供的导出服务实现以外的导出服务实现。您可能有一个本地定义的 ExportService
您不小心使用的类。重命名您的本地类(首选)或将注入(inject)强类型为插件提供的注入(inject)。
关于Grails 导出插件引发错误 "No Signature Of Method is allowed",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55285446/
我是一名优秀的程序员,十分优秀!