//在我加上@ChainBy(args="mvc/nutzbook-mvc-chain.js")后就无法正常启动(删掉此注释就能启动),报错:
[2017-04-04 08:55:01,141] Artifact nutztest:war exploded: Error during artifact deployment. See server log for details.
04-Apr-2017 20:55:07.535 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory E:\Work_Dictionary\IDEAR_TomcatNo.1\apache-tomcat-8.0.22\webapps\manager
04-Apr-2017 20:55:07.888 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory E:\Work_Dictionary\IDEAR_TomcatNo.1\apache-tomcat-8.0.22\webapps\manager has finished in 352 ms
import org.nutz.mvc.annotation.*;
import org.nutz.mvc.ioc.provider.ComboIocProvider;
/**
* Created by dell on 2017/4/2.
*/
@SetupBy(value=MainSetup.class)
@Modules(scanPackage=true)
@Ok("json:full")
@Fail("jsp:jsp.500")
@Localization(value="msg/", defaultLocalizationKey="zh-CN")
@ChainBy(args="mvc/nutzbook-mvc-chain.js")
@IocBy(type=ComboIocProvider.class, args={"*js", "ioc/",
// 这个package下所有带@IocBean注解的类,都会登记上
"*anno", "net.wendal.nutzbook",
"*tx", // 事务拦截 aop
"*async"}) // 异步执行aop
public class MainModule {
}