想在把原来的nutz的web项目(由web.xml驱动),升级为nutzboot,但参考todo-backend-nutzboot项目,运行的时候,发现配置文件找不到...
@IocBy(type = ComboIocProvider.class, args = { "*org.nutz.ioc.loader.json.JsonLoader", "ioc/",
"*org.nutz.ioc.loader.annotation.AnnotationIocLoader", "com.abc.api", "*org.nutz.aop.interceptor.ioc.TransIocLoader" })
@Encoding(input = "UTF-8", output = "UTF-8")
public class MainModule {
new NbApp(TodoLauncher.class).run();
}
ioc配置如下
```
var ioc = {
conf: {
type: "org.nutz.ioc.impl.PropertiesProxy",
fields: {
paths : ["conf/config.properties"]
}
},
......
错误日志如下
2018-01-11 16:30:50,987 INFO [main] org.nutz.lang.inject.InjectBySetter[inject 61]- Fail to value by setter
java.lang.IllegalArgumentException: maxActive can't not set zero
at com.alibaba.druid.pool.DruidDataSource.setMaxActive(DruidDataSource.java:636)
at com.alibaba.druid.pool.DruidDataSource$FM$setMaxActive$c76b354f05bc0c0f1223517f51b5d4bd.invoke(DruidDataSource.java)
at org.nutz.lang.inject.InjectBySetter.inject(InjectBySetter.java:51)
at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:33)
at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:67)
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:138)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:32)
at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:67)
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:138)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:60)
at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:32)
at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:67)
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:138)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
at org.nutz.ioc.val.ReferTypeValue.get(ReferTypeValue.java:60)
at org.nutz.ioc.weaver.FieldInjector.inject(FieldInjector.java:32)
at org.nutz.ioc.weaver.DefaultWeaver.fill(DefaultWeaver.java:67)
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:138)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:269)
at com.mgtv.person.feed.web.MainSetup.(MainSetup.java:21)
at com.mgtv.person.feed.web.MainSetup$FC$62febe830a4a6764c634d9e263964cee.invoke(MainSetup.java)
```