Java Groovy Spring@配置使用@ComponentScan和多个包

Java Groovy Spring@配置使用@ComponentScan和多个包,java,spring,groovy,Java,Spring,Groovy,我在@配置中使用groovy和@组件扫描 Groovy语法不允许内嵌字符串数组使用{“foo”,“bar”}。如何获得多个包 在爪哇 @ComponentScan(basePackages = {"com.igive.services","com.igive.camel"}) 如何在groovy中做到这一点???尝试groovy列表表示法 @ComponentScan(basePackages = ["com.igive.services","com.igive.camel"]) 尝试Gro

我在
@配置中使用groovy和
@组件扫描

Groovy语法不允许内嵌字符串数组使用
{“foo”,“bar”}
。如何获得多个包

在爪哇

@ComponentScan(basePackages = {"com.igive.services","com.igive.camel"})

如何在groovy中做到这一点???

尝试groovy
列表
表示法

@ComponentScan(basePackages = ["com.igive.services","com.igive.camel"])

尝试Groovy
List
表示法

@ComponentScan(basePackages = ["com.igive.services","com.igive.camel"])

实际上我可以在调试日志中看到bean名称,我有另一个问题实际上我可以在调试日志中看到bean名称,我有另一个问题