org.nutz.web.maker.mainModule.tmpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nutz-web Show documentation
Show all versions of nutz-web Show documentation
Nutz, which is a collections of lightweight frameworks, each of them can be used independently
package ${pkg};
import org.nutz.mvc.annotation.Fail;
import org.nutz.mvc.annotation.IocBy;
import org.nutz.mvc.annotation.Modules;
import org.nutz.mvc.annotation.SetupBy;
import org.nutz.mvc.annotation.Views;
import org.nutz.mvc.ioc.provider.ComboIocProvider;
import org.nutz.web.ajax.AjaxViewMaker;
import org.nutz.web.error.ErrPageViewMaker;
@Modules(scanPackage = true)
@IocBy(type = ComboIocProvider.class,
// 采用复合加载器的参数
args = {"*org.nutz.ioc.loader.json.JsonLoader",
"ioc",
"*org.nutz.ioc.loader.annotation.AnnotationIocLoader",
"${pkg}.module"})
@SetupBy(${pnm}Setup.class)
@Views(value = {AjaxViewMaker.class, ErrPageViewMaker.class})
@Fail("errpage")
public class ${pnm}MainModule {}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy