NutzCN Logo
问答 ioc配置是这样写的吗
发布于 3152天前 作者 qq_e4444c8a 1882 次浏览 复制 上一个帖子 下一个帖子
标签:

/**
* 系统管理配置
/
var ioc = {
/
用户注册(暂时不用) /
userregModule : {
type : "com.zzhdsoft.mvc.sysmanager.UserregModule",
fields : {
userregService : {
refer : 'userregService'
}
}
},
userregService : {
type : "com.zzhdsoft.siweb.service.sysmanager.UserregService",
fields : {
dao : {
refer : 'dao'
},
commonInfoQueryService : {
refer : 'commonInfoQueryService'
}
}
},
/
用户登录 /
loginModule : {
type : "com.zzhdsoft.mvc.sysmanager.LoginModule",
fields : {
loginService : {
refer : 'loginService'
}
}
},
loginService : {
type : "com.zzhdsoft.siweb.service.sysmanager.LoginService",
fields : {
dao : {
refer : 'dao'
},
sysfunctionService : {
refer : 'sysfunctionService'
}
}
},
/
用户管理 /
sysuserModule : {
type : "com.zzhdsoft.mvc.sysmanager.SysuserModule",
fields : {
sysuserService : {
refer : 'sysuserService'
}
}
},
sysuserService : {
type : "com.zzhdsoft.siweb.service.sysmanager.SysuserService",
fields : {
dao : {
refer : 'dao'
}
}
},
/
角色管理 /
sysroleModule : {
type : "com.zzhdsoft.mvc.sysmanager.SysroleModule",
fields : {
sysroleService : {
refer : 'sysroleService'
},
sysfunctionService : {
refer : 'sysfunctionService'
}
}
},
sysroleService : {
type : "com.zzhdsoft.siweb.service.sysmanager.SysroleService",
fields : {
dao : {
refer : 'dao'
}
}
},
/
机构管理 /
sysorgModule : {
type : "com.zzhdsoft.mvc.sysmanager.SysorgModule",
fields : {
sysorgService : {
refer : 'sysorgService'
}
}
},
sysorgService : {
type : "com.zzhdsoft.siweb.service.sysmanager.SysorgService",
fields : {
dao : {
refer : 'dao'
}
}
},
/
系统公用功能 /
sysCommonFunModule : {
type : "com.zzhdsoft.mvc.system.SysCommonFunModule",
fields : {
sysCommonFunService : {
refer : 'sysCommonFunService'
}
}
},
sysCommonFunService : {
type : "com.zzhdsoft.siweb.service.system.SysCommonFunService",
fields : {
dao : {
refer : 'dao'
}
}
},
/
菜单管理 /
sysfunctionModule : {
type : "com.zzhdsoft.mvc.sysmanager.SysfunctionModule",
fields : {
sysfunctionService : {
refer : 'sysfunctionService'
}
}
},
sysfunctionService : {
type : "com.zzhdsoft.siweb.service.sysmanager.SysfunctionService",
fields : {
dao : {
refer : 'dao'
}
}
},
/
系统操作日志管理 /
sysoperatelogModule : {
type : "com.zzhdsoft.mvc.sysmanager.SysoperatelogModule",
fields : {
sysoperatelogService : {
refer : 'sysoperatelogService'
}
}
},
sysoperatelogService : {
type : "com.zzhdsoft.siweb.service.sysmanager.SysoperatelogService",
fields : {
dao : {
refer : 'dao'
}
}
},
/
新闻分类管理 /
newsCateModule : {
type : "com.zzhdsoft.mvc.sysmanager.NewsCateModule",
fields : {
newsCateService : {
refer : 'newsCateService'
}
}
},
newsCateService : {
type : "com.zzhdsoft.siweb.service.sysmanager.NewsCateService",
fields : {
dao : {
refer : 'dao'
}
}
},
/
新闻管理 /
newsModule : {
type : "com.zzhdsoft.mvc.sysmanager.NewsModule",
fields : {
newsService : {
refer : 'newsService'
}
}
},
newsService : {
type : "com.zzhdsoft.siweb.service.sysmanager.NewsService",
fields : {
dao : {
refer : 'dao'
}
}
},
/
工作流管理 /
workflowModule : {
type : "com.zzhdsoft.mvc.workflow.WorkflowModule",
fields : {
workflowService : {
refer : 'workflowService'
}
}
},
workflowService : {
type : "com.zzhdsoft.siweb.service.workflow.WorkflowService",
fields : {
dao : {
refer : 'dao'
},
wsgldyService : {
refer : 'wsgldyService'
}
}
},
/
司机宝 */
sjbModule : {
type : "com.zzhdsoft.mvc.SjbModule",
fields : {
sjbService : {
refer : 'sjbService'
}
}
},
sjbService : {
type : "com.zzhdsoft.siweb.service.SjbService",
fields : {
dao : {
refer : 'dao'
}
}
}

};

3 回复

贴这么一坨东西,没人会帮你看的. 再说, 最起码要用菜单里面的代码块包起来.

说清楚遇到啥问题,报什么错误,做了哪些尝试

我想问的是ioc配置文件的格式,需要这么复杂吗

@hy2288

不需要, 一般原则: 自己写的类,用注解, 第三方库的类,用js,而且按功能分多个文件.

具体可以参考本站的源码.

添加回复
请先登陆
回到顶部