在主模块中已经声明了一个iocby用来构建dao
@IocBy(type = ComboIocProvider.class, args = { "*js", "ioc/", "*anno", "net.myDCM", "*tx" })
@Modules(scanPackage = true)
public class MainModule {
现有一工具类,想实现ioc
@IocBean
public class XMLUtil {
文档中说,应该这么写
@IocBy(type = AnnotationIocProvider.class,
args = { "com.you.app.package0",
"com.you.app.package1"})
public class MainModule {
但是一个module中不能有两个iocby,求解怎么让xmlutil实现ioc