@wendal /*
* 本配置文件声明了整个应用的数据库连接部分。
*/
var ioc = {
dataSource : {
type : "com.alibaba.druid.pool.DruidDataSource",
fields : {
driverClass : "oracle.jdbc.driver.OracleDriver",
jdbcUrl : "jdbc:oracle:thin:@:1521:orcl",
user : "",
password : ""
}
},
dao : {
type : "org.nutz.dao.impl.NutDao",
args : [ {
refer : "dataSource"
} ]
}
};
我在js中没有声明bean,全都是以注入方式写的
这是我的nutz日志:
ALL Nutz Log via Log4jLogAdapter
[INFO ] [2016/04/02 11:04:59] SEE org.nutz.log.Logs - Nutz is licensed under the Apache License, Version 2.0 .
Report bugs : https://github.com/nutzam/nutz/issues
[INFO ] [2016/04/02 11:04:59] SEE org.nutz.mvc.NutFilter - NutFilter[nutz] starting ...
[INFO ] [2016/04/02 11:05:02] SEE org.nutz.mvc.impl.NutLoading - Nutz Version : 1.b.51
[INFO ] [2016/04/02 11:05:02] SEE org.nutz.mvc.impl.NutLoading - Nutz.Mvc[nutz] is initializing ...
[INFO ] [2016/04/02 11:05:02] SEE org.nutz.ioc.loader.annotation.AnnotationIocLoader - Scan complete ! Found 13 classes in 1 base-packages!
beans = ["customerCodeBiz", "home", "baseDao", "userMastManagerBiz", "complexDatabase", "mongoDao", "simpleDababase", "memcached", "baseBiz", "commonMongoService", "errorMessageContent", "userManagerServiceImpl", "baseMongo"]
[INFO ] [2016/04/02 11:05:02] SEE org.nutz.mvc.impl.NutLoading - Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
[WARN ] [2016/04/02 11:05:02] SEE org.nutz.mvc.impl.NutLoading - None module classes found!!!
[WARN ] [2016/04/02 11:05:02] SEE org.nutz.mvc.impl.NutLoading - None @At found in any modules class!!
[INFO ] [2016/04/02 11:05:02] SEE org.nutz.mvc.impl.NutLoading - Setup application...
[INFO ] [2016/04/02 11:05:02] SEE org.nutz.mvc.impl.NutLoading - Nutz.Mvc[nutz] is up in 528ms
这里是生成了这个userManagerServiceImpl 这个对象吧