如题,ioc.js文件放在src下
IocHolder获取文件代码
ioc = new NutIoc(new JsonLoader("ioc.js"));
开发是正常的,但是部署到tomcat后就报错了
Caused by: java.lang.RuntimeException: folder or file like '^(.+[.])(js|json)$' no found in ioc.js
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:17)
at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
at org.nutz.lang.Mirror.born(Mirror.java:931)
at org.nutz.lang.Lang.makeThrow(Lang.java:116)
at org.nutz.resource.Scans.loadResource(Scans.java:86)
at org.nutz.ioc.loader.json.JsonLoader.(JsonLoader.java:41)
at com.maze.platform.util.IocHolder.start(IocHolder.java:25)
at com.maze.platform.util.IocHolder.(IocHolder.java:15)