Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 groovy 和@ComponentScanwith-in@Configuration
@ComponentScan
@Configuration
Groovy 语法不允许{"foo","bar"}内联字符串数组。如何获得多个包裹?
{"foo","bar"}
在java中
@ComponentScan(basePackages = {"com.igive.services","com.igive.camel"})
我怎么能在groovy中做到这一点?
试试 GroovyList符号
List
@ComponentScan(basePackages = ["com.igive.services","com.igive.camel"])